Searched refs:TcpSocket (Results 1 – 1 of 1) sorted by relevance
168 class TcpSocket : public Socket { class170 explicit TcpSocket(cutils_socket_t sock) : Socket(sock) {} in TcpSocket() function in TcpSocket179 DISALLOW_COPY_AND_ASSIGN(TcpSocket);182 bool TcpSocket::Send(const void* data, size_t length) { in Send()196 bool TcpSocket::Send(std::vector<cutils_socket_buffer_t> buffers) { in Send()230 ssize_t TcpSocket::Receive(void* data, size_t length, int timeout_ms) { in Receive()238 std::unique_ptr<Socket> TcpSocket::Accept() { in Accept()243 return std::unique_ptr<TcpSocket>(new TcpSocket(handler)); in Accept()256 return std::unique_ptr<TcpSocket>(new TcpSocket(sock)); in NewClient()276 return std::unique_ptr<TcpSocket>(new TcpSocket(sock)); in NewServer()