Searched refs:connect_socket (Results 1 – 2 of 2) sorted by relevance
90 static int new_test_socket(int *connect_socket);232 new_test_socket(int *connect_socket) in new_test_socket() argument237 *connect_socket = socket(PF_INET, SOCK_STREAM, 0); in new_test_socket()238 if (*connect_socket < 0) in new_test_socket()267 send_test(int connect_socket, struct sendfile_test test) in send_test() argument290 len = write(connect_socket, &th, sizeof(th)); in send_test()375 int connect_socket; in run_parent() local423 if (new_test_socket(&connect_socket) != 0) { in run_parent()426 close(connect_socket); in run_parent()433 close(connect_socket); in run_parent()[all …]
155 std::unique_ptr<Socket> connect_socket( in TcpConnect() local160 error = connect_socket->Connect(host_and_port); in TcpConnect()162 return std::move(connect_socket); in TcpConnect()