updated network stack interface address check handling in ios/osx

This commit is contained in:
Joseph Henry
2016-10-24 17:48:01 -07:00
parent 3df5034d5a
commit 925882b8c0
5 changed files with 38 additions and 29 deletions

View File

@@ -183,12 +183,11 @@ class ViewController: UIViewController {
while(true)
{
sleep(1)
dispatch_async(dispatch_get_main_queue()) {
//var str_buf = [Int8](count: 16, repeatedValue: 0)
//print(self.zt.get_address(self.txtNWID.text!)) //, &str_buf);
//self.lblAddress.text = String.fromCString(str_buf)
// print("IPV4 = ", String.fromCString(str_buf))
var str_buf = [Int8](count: 16, repeatedValue: 0)
self.zt.get_ipv6_address(self.txtNWID.text!, &str_buf)
self.lblAddress.text = String.fromCString(str_buf)
print("addr = ", String.fromCString(str_buf))
}