u16 netRxLen (u8 socketNum)
|socketNum : The socket number (0~3)|
|Returns the number of available bytes in the receive buffer|
Gets the number of bytes in the receive buffer for socket, socketNum.
Each socket's receive buffer is 2KB (2048 bytes). To make room for more data in the receive buffer, call netRecv. If room is not made available in the receive buffer by the time more data arrives, the newly arrived data will be discarded.
Because there is no receive event for the Ethernet Module, a timer should be used to periodically check if data has been received.