|
|
SOCKET Ns_SockListen (
char *host,
int port
);
Ns_SockListen creates a socket listening for connections on the specified address and port.
sock = Ns_SockListen("localhost", 25);
while (1) {
new = accept(sock, NULL, 0);
... communicate with client on new ...
}