Lines Matching refs:sockfd_
1491 : sockfd_(-1), host_name_(host), port_num_(port) { in SocketWriter()
1496 if (sockfd_ != -1) CloseConnection(); in ~SocketWriter()
1501 GTEST_CHECK_(sockfd_ != -1) in Send()
1505 if (write(sockfd_, message.c_str(), len) != len) { in Send()
1517 GTEST_CHECK_(sockfd_ != -1) in CloseConnection()
1520 close(sockfd_); in CloseConnection()
1521 sockfd_ = -1; in CloseConnection()
1524 int sockfd_; // socket file descriptor member in testing::internal::StreamingListener::SocketWriter
4792 GTEST_CHECK_(sockfd_ == -1) in MakeConnection()
4811 for (addrinfo* cur_addr = servinfo; sockfd_ == -1 && cur_addr != NULL; in MakeConnection()
4813 sockfd_ = socket(cur_addr->ai_family, cur_addr->ai_socktype, in MakeConnection()
4815 if (sockfd_ != -1) { in MakeConnection()
4817 if (connect(sockfd_, cur_addr->ai_addr, cur_addr->ai_addrlen) == -1) { in MakeConnection()
4818 close(sockfd_); in MakeConnection()
4819 sockfd_ = -1; in MakeConnection()
4826 if (sockfd_ == -1) { in MakeConnection()