minor ios/osx project updates

This commit is contained in:
Joseph Henry
2016-11-03 18:26:28 -07:00
parent 39e71baa40
commit 4662de273a
8 changed files with 52 additions and 30 deletions

View File

@@ -181,8 +181,10 @@ class ViewController: NSViewController {
{
sleep(1)
dispatch_async(dispatch_get_main_queue()) {
print("IPV4 = ", String.fromCString(self.zt.get_ipv4_address(self.txtNWID.stringValue)!)) // get IP address
var str_buf = [Int8](count: 16, repeatedValue: 0)
print("addr = ", String.fromCString(str_buf))
}
// TCP
if(selectedProtocol == SOCK_STREAM)
{
@@ -248,7 +250,6 @@ class ViewController: NSViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Set initial UI values for demo
txtAddr.stringValue = serverAddr
txtPort.intValue = serverPort