Searched refs:socket_fd_ (Results 1 – 2 of 2) sorted by relevance
47 : socket_fd_{socket(AF_INET, SOCK_STREAM, 0)} { in ClientSocket()50 if (socket_fd_ < 0) {63 if (connect(socket_fd_, reinterpret_cast<sockaddr*>(&server_addr),74 : socket_fd_{other.socket_fd_} { in ClientSocket()75 other.socket_fd_ = -1;80 socket_fd_ = other.socket_fd_; in operator =()81 other.socket_fd_ = -1; in operator =()90 read(socket_fd_, buf.data() + total_read, buf.size() - total_read); in RecvAll()109 if (socket_fd_ >= 0) { in close()110 ::close(socket_fd_); in close()[all …]
43 bool valid() const { return socket_fd_ >= 0; } in valid()52 int socket_fd_ = -1; variable