Searched refs:sockfd_ (Results 1 – 2 of 2) sorted by relevance
1077 : sockfd_(-1), host_name_(host), port_num_(port) { in SocketWriter()1082 if (sockfd_ != -1) in ~SocketWriter()1088 GTEST_CHECK_(sockfd_ != -1) in Send()1092 if (write(sockfd_, message.c_str(), len) != static_cast<ssize_t>(len)) { in Send()1105 GTEST_CHECK_(sockfd_ != -1) in CloseConnection()1108 close(sockfd_); in CloseConnection()1109 sockfd_ = -1; in CloseConnection()1112 int sockfd_; // socket file descriptor variable
4382 GTEST_CHECK_(sockfd_ == -1) in MakeConnection()4401 for (addrinfo* cur_addr = servinfo; sockfd_ == -1 && cur_addr != nullptr; in MakeConnection()4403 sockfd_ = socket( in MakeConnection()4405 if (sockfd_ != -1) { in MakeConnection()4407 if (connect(sockfd_, cur_addr->ai_addr, cur_addr->ai_addrlen) == -1) { in MakeConnection()4408 close(sockfd_); in MakeConnection()4409 sockfd_ = -1; in MakeConnection()4416 if (sockfd_ == -1) { in MakeConnection()