Searched refs:tcpfd_ (Results 1 – 2 of 2) sorted by relevance
/external/rust/crates/grpcio-sys/grpc/third_party/cares/cares/test/ |
D | ares-test.cc | 174 tcpfd_ = socket(family, SOCK_STREAM, 0); in MockServer() 175 EXPECT_NE(-1, tcpfd_); in MockServer() 177 setsockopt(tcpfd_, SOL_SOCKET, SO_REUSEADDR, in MockServer() 180 setsockopt(tcpfd_, IPPROTO_TCP, TCP_NODELAY, in MockServer() 194 int tcprc = bind(tcpfd_, (struct sockaddr*)&addr, sizeof(addr)); in MockServer() 206 int tcprc = bind(tcpfd_, (struct sockaddr*)&addr, sizeof(addr)); in MockServer() 214 << " mock server with TCP socket " << tcpfd_ in MockServer() 220 EXPECT_EQ(0, listen(tcpfd_, 5)) << "Failed to listen for TCP connections"; in MockServer() 227 sclose(tcpfd_); in ~MockServer() 232 if (fd != tcpfd_ && fd != udpfd_ && connfds_.find(fd) == connfds_.end()) { in ProcessFD() [all …]
|
D | ares-test.h | 169 int tcpfd_; variable
|