Lines Matching refs:connect_fd
91 const int connect_fd = socket(AF_INET, SOCK_STREAM, 0);
92 if (connect_fd < 0)
94 const unsigned long connect_inode = inode_of_sockfd(connect_fd);
96 connect_fd, connect_inode);
99 if (connect(connect_fd, listen_sa, *len))
103 connect_fd, connect_inode, listen_port, (unsigned) *len);
131 if (getpeername(connect_fd, listen_sa, len))
136 connect_fd, connect_port, listen_port, listen_port,
140 if (setsockopt(connect_fd, SOL_TCP, TCP_MAXSEG, optval, *len))
144 connect_fd, connect_port, listen_port, *optval,
148 assert(sendto(connect_fd, text, sizeof(text) - 1,
152 connect_fd, connect_port, listen_port, text,
155 assert(close(connect_fd) == 0);
157 connect_fd, connect_port, listen_port);