int vm_soc_sendto( int sock, const char* buf, int len, int flags, const SOCKADDR* to, int tolen );
int vm_soc_sendto( int sock, const char* buf, int len, int flags, const SOCKADDR* to, int tolen );
Sends data to the endpoint node.
|
Parameters |
Description |
|
int sock |
[IN] The socket descriptor. |
|
const char* buf |
[IN] The buffer that contains the data to be sent. |
|
int len |
[IN] The length of data (in bytes). |
|
int flags |
[IN] Reserved. Not in use. |
|
const SOCKADDR* to |
[IN] The remote socket address. |
|
int tolen |
[IN] The size of the remote socket address. |
|
Return Values |
Description |
|
Non-negative number |
The actual number of bytes that has been sent. |
|
VM_SOC_INVALID_SOCKET |
Invalid socket ID. |
|
VM_SOC_INVAL |
Socket is not calling soc_listen. |
|
VM_SOC_WOULDBLOCK |
Non-blocking. |
|
VM_SOC_BEARER_FAIL |
Bearer broken. |
|
VM_SOC_NOTCONN |
Socket is not connected in case of TCP. |
|
VM_SOC_PIPE |
Socket is already shutdown. |
|
VM_SOC_MSGSIZE |
Message is too long. |
|
VM_SOC_ERROR |
Unspecified error. |
|
VM_SOC_NOTBIND |
Unbound in case of sending ICMP Echo Request, shall bind before |
vmsock.h
Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at
support@toolsfactory.com.