NET_PRES_SocketWrite Function
C
uint16_t NET_PRES_SocketWrite(NET_PRES_SKT_HANDLE_T handle, const void * buffer, uint16_t size);
Returns
The number of bytes written to the socket. If less than len, the buffer became full or the socket is not connected.
Description
This function takes a buffer and sends it to the encryption provider for an encrypted socket, or to the transport layer directly for an unencrypted socket.
Preconditions
A socket needs to have been opened by NET_PRES_SocketOpen.
Parameters
Parameters | Description |
---|---|
handle | The presentation layer socket handle. |
buffer | The pointer to the array to be written. |
size | The number of bytes to be written. |