Macaw OS C reference

Function net_accept

#include <macaw.h>
int net_accept(int listener);

Takes the next person who has connected to your listener. It doesn't wait, so call it from _update.

Parameters

listenerint
The number net_listen gave you.

Returns int

A number for the new connection, or 0 if nobody is waiting.

In The network, with net_online, net_dial, net_connect, net_send, net_readline, net_read, net_receive, net_status, net_peer, net_close, net_listen, net_port.