Home
last modified time | relevance | path

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

/ndk/sources/third_party/googletest/googletest/src/
Dgtest-internal-inl.h1087 : sockfd_(-1), host_name_(host), port_num_(port) { in SocketWriter()
1092 if (sockfd_ != -1) in ~SocketWriter()
1098 GTEST_CHECK_(sockfd_ != -1) in Send()
1102 if (write(sockfd_, message.c_str(), len) != len) { in Send()
1115 GTEST_CHECK_(sockfd_ != -1) in CloseConnection()
1118 close(sockfd_); in CloseConnection()
1119 sockfd_ = -1; in CloseConnection()
1122 int sockfd_; // socket file descriptor variable
Dgtest.cc3409 GTEST_CHECK_(sockfd_ == -1) in MakeConnection()
3428 for (addrinfo* cur_addr = servinfo; sockfd_ == -1 && cur_addr != NULL; in MakeConnection()
3430 sockfd_ = socket( in MakeConnection()
3432 if (sockfd_ != -1) { in MakeConnection()
3434 if (connect(sockfd_, cur_addr->ai_addr, cur_addr->ai_addrlen) == -1) { in MakeConnection()
3435 close(sockfd_); in MakeConnection()
3436 sockfd_ = -1; in MakeConnection()
3443 if (sockfd_ == -1) { in MakeConnection()