Syntax
int SyncSendSc(
SOCKET sock,
void *pvSendBuffer,
unsigned short u16SendLength
);
Parameters
- sock
- [in] Socket descriptor
- pvSendBuffer
- [in] Specify the send buffer.
- u16SendLength
-
[in] Specify the size of the data to be sent.
The upper limit of the size of the transmitted data is SOCKET_BUFFER_MAX_LENGTH (= 1400).
Return value
The following values will be returned.Positive number | Description |
---|---|
Positive number | Send size |
SOCK_ERR_INVALID | Socket invalid The communication destination or own socket is invalid. Please recreate the socket. |
SOCK_ERROR | Socket error Close the socket and recreate it. |
M2M_ERR_SLEEP_FAIL | Initialize with SysWLANInit function. |
Other than the above | Failed |
Remarks
Performs socket transmission (TCP compatible).Requirements
Header file:
lib.hLibrary file:
libSTARTUPOPH5000.a
Last updated: 2020/10/14