TCPIP_UDP_Put Function

C

uint16_t TCPIP_UDP_Put(UDP_SOCKET hUDP, uint8_t v); 

Description

This function writes a single byte to the UDP socket, while incrementing the socket write pointer. TCPIP_UDP_PutIsReady could be used before calling this function to verify that there is room in the socket buffer.

Remarks

This function is very inefficient and its use is discouraged. A buffered approach (TCPIP_UDP_ArrayPut) is preferred.

Preconditions

UDP socket should have been opened with TCPIP_UDP_ServerOpen/TCPIP_UDP_ClientOpen. hUDP - valid socket

Parameters

ParametersDescription
hUDPUDP socket handle
vThe byte to be loaded into the transmit buffer.