Searched refs:UdpSocket (Results 1 – 1 of 1) sorted by relevance
108 class UdpSocket : public Socket { class112 UdpSocket(Type type, cutils_socket_t sock);122 DISALLOW_COPY_AND_ASSIGN(UdpSocket);125 UdpSocket::UdpSocket(Type type, cutils_socket_t sock) : Socket(sock) { in UdpSocket() function in UdpSocket135 bool UdpSocket::Send(const void* data, size_t length) { in Send()141 bool UdpSocket::Send(std::vector<cutils_socket_buffer_t> buffers) { in Send()151 ssize_t UdpSocket::Receive(void* data, size_t length, int timeout_ms) { in Receive()251 return std::unique_ptr<UdpSocket>(new UdpSocket(UdpSocket::Type::kClient, sock)); in NewClient()271 return std::unique_ptr<UdpSocket>(new UdpSocket(UdpSocket::Type::kServer, sock)); in NewServer()