Home
last modified time | relevance | path

Searched refs:socket_ (Results 1 – 3 of 3) sorted by relevance

/device/google/cuttlefish/common/libs/utils/
Dunix_sockets.cpp205 UnixMessageSocket::UnixMessageSocket(SharedFD socket) : socket_(socket) { in UnixMessageSocket()
215 if (socket_->SetSockOpt(SOL_SOCKET, SO_PASSCRED, &flag, sizeof(flag)) != 0) { in EnableCredentials()
217 << socket_->StrError()); in EnableCredentials()
250 auto bytes_sent = socket_->SendMsg(&message_header, MSG_NOSIGNAL); in WriteMessage()
251 CF_EXPECT(bytes_sent >= 0, "Failed to send message: " << socket_->StrError()); in WriteMessage()
274 auto bytes_read = socket_->RecvMsg(&message_header, MSG_CMSG_CLOEXEC); in ReadMessage()
276 auto bytes_read = socket_->RecvMsg(&message_header, 0); in ReadMessage()
280 CF_EXPECT(bytes_read >= 0, "Read error: " << socket_->StrError()); in ReadMessage()
Dunix_sockets.h84 SharedFD socket_;
/device/google/cuttlefish/host/libs/input_connector/
Dsocket_input_connector.cpp133 TouchDevice(std::unique_ptr<InputSocket> s) : socket_(std::move(s)) {} in TouchDevice()
136 return socket_->WriteEvents(std::move(buffer)); in WriteEvents()
204 std::unique_ptr<InputSocket> socket_; member in cuttlefish::TouchDevice