Zen API
|
Writes one or more bytes.
In blocking mode, this function will block until all bytes are written (or a write timeout occurs).
In non-blocking mode, this function will write zero or more bytes. kSocket_Wait can be used to determine when buffer space is available for a write operation, increasing the odds that bytes can be written successfully.
socket | Socket object. |
buffer | Buffer of bytes to write. |
size | The number of bytes to write. |
written | The number of bytes that were written. |