Function net_peer
#include <macaw.h>int net_peer(int s, char *buf, int size);
Tells you who is at the other end of a connection.
Parameters
sint- The connection's number.
bufchar *- Where their address goes: the host you connected to, or the address of someone who connected to you.
sizeint- How many bytes
bufholds. An address that doesn't fit is cut short.
Returns int
The address's whole length.
In The network, with net_online, net_dial, net_connect, net_send, net_readline, net_read, net_receive, net_status, net_close, net_listen, net_accept, net_port.