t_inetd.c | 51 #define TCP 6 67 "uses UDP/TCP ports 5432-5439 with localhost."); 197 /* Run localhost tcp echo, return true if successful, false if timeout/disconnect */ 203 int tcp; local in function:run_tcp_client 206 tcp = create_socket("127.0.0.1", port, SOCK_STREAM, TCP, 1, &remote); 207 CHECK_ERROR(connect(tcp, (const struct sockaddr *)&remote, 209 CHECK_ERROR(send(tcp, buffer, sizeof(buffer), 0)); 210 count = recv(tcp, buffer, sizeof(buffer), 0);
|