Macaw OS C reference

Function net_close

#include <macaw.h>
void net_close(int s);

Closes a connection, or stops a listener. Everything closes by itself when your window does.

Parameters

sint
The number of the connection or listener. A number that isn't one is ignored.

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