mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-11 15:46:35 -07:00
replace ServiceCom with objc class
This commit is contained in:
parent
a0db48571d
commit
b51d68a419
9 changed files with 323 additions and 234 deletions
|
@ -63,7 +63,7 @@ class NetworkMonitor: NSObject {
|
|||
}
|
||||
}
|
||||
|
||||
ServiceCom.sharedInstance.getNetworkList() { (networkList) -> Void in
|
||||
ServiceCom.sharedInstance().getNetworklist() { (networkList) -> Void in
|
||||
self.receivedNetworks = networkList
|
||||
|
||||
NSOperationQueue.mainQueue().addOperationWithBlock() { () -> Void in
|
||||
|
@ -71,7 +71,7 @@ class NetworkMonitor: NSObject {
|
|||
}
|
||||
}
|
||||
|
||||
ServiceCom.sharedInstance.getNodeStatus() { nodeStatus -> Void in
|
||||
ServiceCom.sharedInstance().getNodeStatus() { nodeStatus -> Void in
|
||||
NSOperationQueue.mainQueue().addOperationWithBlock() { () -> Void in
|
||||
let nc = NSNotificationCenter.defaultCenter()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue