User Tools

Site Tools

한국어

moacon:netrecv:index

netRecv

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.

Network sample program

go MOACON home

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