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