Searched refs:clifd (Results 1 – 2 of 2) sorted by relevance
/third_party/grpc/test/core/iomgr/ |
D | tcp_server_posix_test.cc | 227 int clifd; in tcp_connect() local 236 clifd = socket(remote_addr->sa_family, SOCK_STREAM, 0); in tcp_connect() 237 if (clifd < 0) { in tcp_connect() 242 if (connect(clifd, remote_addr, static_cast<socklen_t>(remote->addr.len)) != in tcp_connect() 245 close(clifd); in tcp_connect() 256 close(clifd); in tcp_connect() 266 close(clifd); in tcp_connect() 269 close(clifd); in tcp_connect()
|
D | udp_server_test.cc | 303 int clifd, svrfd; in test_receive() local 338 clifd = socket(addr->ss_family, SOCK_DGRAM, 0); in test_receive() 339 GPR_ASSERT(clifd >= 0); in test_receive() 340 GPR_ASSERT(connect(clifd, (struct sockaddr*)addr, in test_receive() 342 GPR_ASSERT(5 == write(clifd, "hello", 5)); in test_receive() 352 close(clifd); in test_receive()
|