User Tools

Site Tools

한국어

moacon:netrxlen:index

netRxLen

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.

Network sample program

go MOACON home

moacon/netrxlen/index.txt · Last modified: 2016/04/14 11:07 (external edit)