TCPIP_TCP_Get Function

C

uint16_t TCPIP_TCP_Get(
    TCP_SOCKET hTCP, 
    uint8_t* byte
);

Description

This function retrieves a single byte to a TCP socket.

Preconditions

TCP socket should have been opened with TCPIP_TCP_ServerOpen()/TCPIP_TCP_ClientOpen(). hTCP - valid socket.

Parameters

ParametersDescription
hTCPThe socket from which to read.
bytePointer to location in which the read byte should be stored.

Remarks

Note that this function is inefficient. A buffered approach (TCPIP_TCP_ArrayGet) is preferred.