Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
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.

Parameters
socketSocket object.
addressIP address of the recipient.
portPort number of the recipient.
bufferBuffer containing the datagram to send.
sizeThe number of bytes in the supplied buffer.
Returns
Operation status.