Searched refs:UdpSocket (Results 1 – 1 of 1) sorted by relevance
114 class UdpSocket : public Socket { class118 UdpSocket(Type type, cutils_socket_t sock);128 DISALLOW_COPY_AND_ASSIGN(UdpSocket);131 UdpSocket::UdpSocket(Type type, cutils_socket_t sock) : Socket(sock) { in UdpSocket() function in UdpSocket141 bool UdpSocket::Send(const void* data, size_t length) { in Send()147 bool UdpSocket::Send(std::vector<cutils_socket_buffer_t> buffers) { in Send()157 ssize_t UdpSocket::Receive(void* data, size_t length, int timeout_ms) { in Receive()257 return std::unique_ptr<UdpSocket>(new UdpSocket(UdpSocket::Type::kClient, sock)); in NewClient()277 return std::unique_ptr<UdpSocket>(new UdpSocket(UdpSocket::Type::kServer, sock)); in NewServer()