Function net_connect
#include <macaw.h>int net_connect(const char *host, int port);
Starts a connection to a computer on the Macaw network. It doesn't wait: check net_status to see when it's open.
Parameters
hostconst char *- The name to connect to, like
"macaw.com","isp.macaw"for the ISP, or"name.macaw"for someone dialled in. portint- The port to connect to on that computer, like 80 for web pages.
Returns int
A number for the connection, or 0 if Macaw OS isn't online. Then it also opens Dial-Up to dial.
In The network, with net_online, net_dial, net_send, net_readline, net_read, net_receive, net_status, net_peer, net_close, net_listen, net_accept, net_port.