Home
last modified time | relevance | path

Searched refs:ClientSocket (Results 1 – 2 of 2) sorted by relevance

/device/google/cuttlefish/common/libs/utils/
Dtcp_socket.h34 class ClientSocket {
36 ClientSocket(ClientSocket&& other) : fd_{other.fd_} {} in ClientSocket() function
38 ClientSocket& operator=(ClientSocket&& other) {
43 ClientSocket(int port);
45 ClientSocket(const ClientSocket&) = delete;
46 ClientSocket& operator=(const ClientSocket&) = delete;
65 explicit ClientSocket(SharedFD fd) : fd_(fd) {} in ClientSocket() function
80 ClientSocket Accept();
Dtcp_socket.cpp33 ClientSocket::ClientSocket(int port) in ClientSocket() function in cuttlefish::ClientSocket
36 Message ClientSocket::RecvAny(std::size_t length) { in RecvAny()
46 bool ClientSocket::closed() const { in closed()
51 Message ClientSocket::Recv(std::size_t length) { in Recv()
72 ssize_t ClientSocket::SendNoSignal(const uint8_t* data, std::size_t size) { in SendNoSignal()
93 ssize_t ClientSocket::SendNoSignal(const Message& message) { in SendNoSignal()
104 ClientSocket ServerSocket::Accept() { in Accept()
109 return ClientSocket{client}; in Accept()