u16 netRecv (u8 socketNum, u8* buffer, u16 length)
|socketNum : The socket number (0~3)|
|buffer : The location in memory to store the received data|
|length : The number of bytes to receive|
|Returns the number of bytes read from the receive buffer|
Takes length bytes of data out of the receive buffer on socket, socketNum, and stores the data in memory location, buffer. A connection must be established (SOCK_ESTABLILSHED) to receive data.
To know how much data can be read from the receive buffer, use the netRxLen function.