I've done some tests I note that the SOCK_INIT () command works correctly and responds 1, which means that initiates the socket well. However, when the connection is made using SOCK_TCPCONNECT (), an error occurs and responds -1.
XCode displays this error just after using SOCK_TCPCONNECT ().
2017-03-05 14:22:39.066829 GLB_PRODUCT_NAME[2984:533812] Warning: Libinfo call to mDNSResponder on main thread
And NETGETLASTERROR$() responds...
2017-03-05 14:22:39.381579 GLB_PRODUCT_NAME[2984:533812] - 57 Socket is not connected
I do not know what can happen.
I hope someone can help me with this data I provide.