Lines Matching refs:sockfd_
3308 : sockfd_(-1), host_name_(host), port_num_(port) { in StreamingListener()
3314 if (sockfd_ != -1) in ~StreamingListener()
3382 GTEST_CHECK_(sockfd_ != -1) in CloseConnection()
3385 close(sockfd_); in CloseConnection()
3386 sockfd_ = -1; in CloseConnection()
3391 GTEST_CHECK_(sockfd_ != -1) in Send()
3395 if (write(sockfd_, message.c_str(), len) != len) { in Send()
3402 int sockfd_; // socket file descriptor member in testing::internal::StreamingListener
3434 GTEST_CHECK_(sockfd_ == -1) in MakeConnection()
3453 for (addrinfo* cur_addr = servinfo; sockfd_ == -1 && cur_addr != NULL; in MakeConnection()
3455 sockfd_ = socket( in MakeConnection()
3457 if (sockfd_ != -1) { in MakeConnection()
3459 if (connect(sockfd_, cur_addr->ai_addr, cur_addr->ai_addrlen) == -1) { in MakeConnection()
3460 close(sockfd_); in MakeConnection()
3461 sockfd_ = -1; in MakeConnection()
3468 if (sockfd_ == -1) { in MakeConnection()