Prior to performing any socket-specific behavior, ISOCKET_Connect() will perform an ISOCKET_Realize() if necessary.
After establishment of a connection to the Internet, the callback is passed the error code that describes how the connect operation completed. As with all network callbacks, the callback is called within the same thread context, at some point in time after the caller returns control to the AEE event loop.
int ISOCKET_Connect ( ISocket * pISocket, INAddr a, INPort wPort, PFNCONNECTCB pfn, void * pUser )
- AEE_NET_SUCCESS: if successful. This indicates that the callback will be called
after the caller relinquishes control.
AEE_NET_ERROR: when a NULL callback pointer (pfn) was passed. This is the only case in which the callback will not be called.