forked from I2P_Developers/i2p.i2p
24 lines
624 B
Swift
24 lines
624 B
Swift
//
|
|
// RouterProcessStatus+ObjectiveC.swift
|
|
// I2PLauncher
|
|
//
|
|
// Created by Mikal Villa on 18/09/2018.
|
|
// Copyright © 2018 The I2P Project. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
extension RouterProcessStatus {
|
|
|
|
static func createNewRouterProcess(i2pPath: String) {
|
|
let timeWhenStarted = Date()
|
|
RouterProcessStatus.routerStartedAt = timeWhenStarted
|
|
SBridge.sharedInstance().startupI2PRouter(i2pPath)
|
|
RouterManager.shared().updateState()
|
|
}
|
|
static func shutdownRouterChildProcess() {
|
|
RouterManager.shared().getRouterTask()?.requestShutdown()
|
|
RouterManager.shared().updateState()
|
|
}
|
|
}
|