Syntax
int SyncConnectSc(
SOCKET sock,
struct sockaddr_in *pstrAddr,
unsigned long u32Timeoutmsec
);
Parameters
- sock
- [in] Socket descriptor
- pstrAcceptAddr
- [in]A pointer to the sockaddr_in structure.
- u32Timeoutmsec
- [in] Specify the timeout (msec). If you specify 0 or 4294967295 (0xFFFFFFFF), it will not time out.
Return value
The following values will be returned.Value | Description |
---|---|
SOCK_ERR_NO_ERROR | Succeeded |
SOCK_ERROR | Sock error(Please recreate the socket.) |
M2M_ERR_SLEEP_FAIL | Initialize with SysWLANInit function. |
Other than the above | Failed |
Remarks
Make a connection with the server.Requirements
Header file:
lib.hLibrary file:
libSTARTUPOPH5000.a
Last updated: 2020/10/14