Searched refs:socket_ (Results 1 – 2 of 2) sorted by relevance
39 explicit SocketSender(cvd::SharedFD socket) : socket_{socket} {} in SocketSender()48 if (socket_.operator->()) { // check that socket_ was not moved-from in ~SocketSender()49 socket_->Shutdown(SHUT_WR); in ~SocketSender()56 if (!socket_->IsOpen()) { in SendAll()60 socket_->Send(packet.payload() + written, in SendAll()64 << strerror(socket_->GetErrno()); in SendAll()73 cvd::SharedFD socket_; member in __anon0f53e1c00111::SocketSender78 explicit SocketReceiver(cvd::SharedFD socket) : socket_{socket} {} in SocketReceiver()88 auto size = socket_->Read(packet->payload(), sizeof packet->payload()); in Recv()96 cvd::SharedFD socket_; member in __anon0f53e1c00111::SocketReceiver
57 explicit SocketSender(cvd::SharedFD socket) : socket_{std::move(socket)} {} in SocketSender()66 if (socket_.operator->()) { // check that socket_ was not moved-from in ~SocketSender()67 socket_->Shutdown(SHUT_WR); in ~SocketSender()74 if (!socket_->IsOpen()) { in SendAll()78 socket_->Send(packet.payload() + written, in SendAll()82 << strerror(socket_->GetErrno()); in SendAll()91 cvd::SharedFD socket_; member in __anon229ddf6f0111::SocketSender96 explicit SocketReceiver(cvd::SharedFD socket) : socket_{std::move(socket)} {} in SocketReceiver()106 auto size = socket_->Read(packet->payload(), sizeof packet->payload()); in Recv()114 cvd::SharedFD socket_; member in __anon229ddf6f0111::SocketReceiver