Searched refs:TcpSocket (Results 1 – 1 of 1) sorted by relevance
174 class TcpSocket : public Socket { class176 explicit TcpSocket(cutils_socket_t sock) : Socket(sock) {} in TcpSocket() function in TcpSocket185 DISALLOW_COPY_AND_ASSIGN(TcpSocket);188 bool TcpSocket::Send(const void* data, size_t length) { in Send()202 bool TcpSocket::Send(std::vector<cutils_socket_buffer_t> buffers) { in Send()236 ssize_t TcpSocket::Receive(void* data, size_t length, int timeout_ms) { in Receive()244 std::unique_ptr<Socket> TcpSocket::Accept() { in Accept()249 return std::unique_ptr<TcpSocket>(new TcpSocket(handler)); in Accept()262 return std::unique_ptr<TcpSocket>(new TcpSocket(sock)); in NewClient()282 return std::unique_ptr<TcpSocket>(new TcpSocket(sock)); in NewServer()