/* bsd-socket(2)-lookalike */ #include #include #include #include #include #include #include #include int listen(int s, int backlog) { nwio_tcpcl_t tcpopt; struct sockaddr_in *in_peer; tcpopt.nwtcl_flags = tcpopt.nwtcl_ttl = 0; if(ioctl(s, NWIOTCPLISTEN, &tcpopt) < 0) return -1; return 0; }