Home
last modified time | relevance | path

Searched refs:clifd (Results 1 – 2 of 2) sorted by relevance

/external/grpc-grpc/test/core/iomgr/
Dudp_server_test.cc299 int clifd, svrfd; in test_receive() local
334 clifd = socket(addr->ss_family, SOCK_DGRAM, 0); in test_receive()
335 GPR_ASSERT(clifd >= 0); in test_receive()
336 GPR_ASSERT(connect(clifd, (struct sockaddr*)addr, in test_receive()
338 GPR_ASSERT(5 == write(clifd, "hello", 5)); in test_receive()
348 close(clifd); in test_receive()
Dtcp_server_posix_test.cc227 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()