Lines Matching refs:connect_fd
109 const int connect_fd = socket(ADDR_FAMILY, SOCK_STREAM, 0); in main() local
110 if (connect_fd < 0) in main()
112 const unsigned long connect_inode = inode_of_sockfd(connect_fd); in main()
115 connect_fd, connect_inode); in main()
118 if (connect(connect_fd, listen_sa, *len)) in main()
122 connect_fd, connect_inode, listen_port, (unsigned) *len); in main()
150 if (getpeername(connect_fd, listen_sa, len)) in main()
155 connect_fd, connect_port, listen_port, listen_port, in main()
159 if (setsockopt(connect_fd, SOL_TCP, TCP_MAXSEG, optval, *len)) in main()
163 connect_fd, connect_port, listen_port, *optval, in main()
167 assert(sendto(connect_fd, text, sizeof(text) - 1, in main()
171 connect_fd, connect_port, listen_port, text, in main()
174 assert(close(connect_fd) == 0); in main()
177 connect_fd, connect_port, listen_port); in main()