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

ParametersDescription
handleThe presentation layer socket handle.
bufferThe pointer to the array to be written.
sizeThe number of bytes to be written.