Function net_receive
#include <macaw.h>int net_receive(int s, void *buf, int size);
Takes whatever has arrived on a connection so far, up to size bytes.
Parameters
sint- The connection's number.
bufvoid *- Where the bytes go. They don't end with a 0, so use the number it returns.
sizeint- The most bytes to take: how many
bufholds. Any more wait for the next call.
Returns int
How many bytes it took, which is 0 if nothing has arrived.
In The network, with net_online, net_dial, net_connect, net_send, net_readline, net_read, net_status, net_peer, net_close, net_listen, net_accept, net_port.