Syntax
int SyncBindSc(
SOCKET sock,
struct sockaddr_in *pstrAddr
);
Parameters
- sock
-
[in] Socket descriptor
- pstrAddr
- [in]A pointer to the sockaddr_in structure.
Return value
The following values will be returned.Value | Description |
---|---|
SOCK_ERR_NO_ERROR | Succeeded |
M2M_ERR_SLEEP_FAIL | Initialize with SysWLANInit function. |
Other than the above | Failed |
Remarks
Assign a socket address to the socket.Requirements
Header file:
lib.hLibrary file:
libSTARTUPOPH5000.a
Last updated: 2020/11/26