Lines Matching refs:netfd
56 int netfd; /* console fd:s are 0 and 1 (and 2) */
98 write(G.netfd, G.iacbuf, G.iaclen);
195 write(G.netfd, outbuf, j);
599 G.netfd = create_and_connect_stream_or_die(host, port);
601 setsockopt(G.netfd, SOL_SOCKET, SO_KEEPALIVE, &const_int_1, sizeof(const_int_1));
606 ufds[0].fd = 0; ufds[1].fd = G.netfd;
611 FD_SET(G.netfd, &readfds);
612 maxfd = G.netfd + 1;
651 if (FD_ISSET(G.netfd, &rfds))
654 len = read(G.netfd, G.buf, DATABUFSIZE);
659 TRACE(0, ("Read netfd (%d): %d\n", G.netfd, len));