|
Zen API
|
| kStatus kSocket_WriteTo | ( | kSocket | socket, |
| kIpAddress | address, | ||
| k32u | port, | ||
| const void * | buffer, | ||
| kSize | size | ||
| ) |
Sends a datagram.
In blocking mode, this function will block until the datagram is sent (or a write timeout occurs).
In non-blocking mode, use kSocket_Wait to determine when this function can be called successfully.
| socket | Socket object. |
| address | IP address of the recipient. |
| port | Port number of the recipient. |
| buffer | Buffer containing the datagram to send. |
| size | The number of bytes in the supplied buffer. |