Searched refs:nnetfd (Results 1 – 1 of 1) sorted by relevance
/external/netcat/ |
D | netcat.c | 612 register int nnetfd; local 620 nnetfd = socket (AF_INET, SOCK_DGRAM, IPPROTO_UDP); 622 nnetfd = socket (AF_INET, SOCK_STREAM, IPPROTO_TCP); 623 if (nnetfd < 0) 625 if (nnetfd == 0) /* if stdin was closed this might *be* 0, */ 628 rr = setsockopt (nnetfd, SOL_SOCKET, SO_REUSEADDR, &x, sizeof (x)); 632 rr = setsockopt (nnetfd, SOL_SOCKET, SO_REUSEPORT, &x, sizeof (x)); 641 rr = setsockopt(nnetfd, SOL_SOCKET, SO_RCVBUF, &o_rcvbuf, sizeof o_rcvbuf); 642 rr = setsockopt(nnetfd, SOL_SOCKET, SO_SNDBUF, &o_sndbuf, sizeof o_sndbuf); 662 rr = bind (nnetfd, (SA *)lclend, sizeof (SA)); [all …]
|