Home
last modified time | relevance | path

Searched refs:AsyncUDPSocket (Results 1 – 22 of 22) sorted by relevance

/external/webrtc/webrtc/base/
Dasyncudpsocket.cc18 AsyncUDPSocket* AsyncUDPSocket::Create( in Create()
26 return new AsyncUDPSocket(owned_socket.release()); in Create()
29 AsyncUDPSocket* AsyncUDPSocket::Create(SocketFactory* factory, in Create()
38 AsyncUDPSocket::AsyncUDPSocket(AsyncSocket* socket) in AsyncUDPSocket() function in rtc::AsyncUDPSocket
45 socket_->SignalReadEvent.connect(this, &AsyncUDPSocket::OnReadEvent); in AsyncUDPSocket()
46 socket_->SignalWriteEvent.connect(this, &AsyncUDPSocket::OnWriteEvent); in AsyncUDPSocket()
49 AsyncUDPSocket::~AsyncUDPSocket() { in ~AsyncUDPSocket()
53 SocketAddress AsyncUDPSocket::GetLocalAddress() const { in GetLocalAddress()
57 SocketAddress AsyncUDPSocket::GetRemoteAddress() const { in GetRemoteAddress()
61 int AsyncUDPSocket::Send(const void *pv, size_t cb, in Send()
[all …]
Dasyncudpsocket.h22 class AsyncUDPSocket : public AsyncPacketSocket {
27 static AsyncUDPSocket* Create(AsyncSocket* socket,
31 static AsyncUDPSocket* Create(SocketFactory* factory,
33 explicit AsyncUDPSocket(AsyncSocket* socket);
34 ~AsyncUDPSocket() override;
Dnatserver.h90 TransEntry(const SocketAddressPair& r, AsyncUDPSocket* s, NAT* nat);
97 AsyncUDPSocket* socket;
114 AsyncUDPSocket* udp_server_socket_;
Dasyncudpsocket_unittest.cc29 udp_socket_(new AsyncUDPSocket(socket_)), in AsyncUdpSocketTest()
43 scoped_ptr<AsyncUDPSocket> udp_socket_;
Dnatserver.cc133 udp_server_socket_ = AsyncUDPSocket::Create(internal, internal_udp_addr); in NATServer()
210 AsyncUDPSocket* socket = AsyncUDPSocket::Create(external_, external_ip_); in Translate()
229 const SocketAddressPair& r, AsyncUDPSocket* s, NAT* nat) in TransEntry()
Dvirtualsocket_unittest.cc32 socket(new AsyncUDPSocket(s)), in Sender()
66 scoped_ptr<AsyncUDPSocket> socket;
78 socket(new AsyncUDPSocket(s)), in Receiver()
126 scoped_ptr<AsyncUDPSocket> socket;
174 TestClient* client1 = new TestClient(new AsyncUDPSocket(socket)); in TestDefaultRoute()
182 TestClient* client2 = new TestClient(new AsyncUDPSocket(socket2)); in TestDefaultRoute()
205 TestClient* client1 = new TestClient(new AsyncUDPSocket(socket)); in BasicTest()
208 TestClient* client2 = new TestClient(new AsyncUDPSocket(socket2)); in BasicTest()
221 client2 = new TestClient(AsyncUDPSocket::Create(ss_, empty)); in BasicTest()
796 TestClient* client1 = new TestClient(new AsyncUDPSocket(socket)); in CrossFamilyDatagramTest()
[all …]
Dtestclient_unittest.cc26 TestClient client(new AsyncUDPSocket(socket)); in TestUdpInternal()
Dnat_unittest.cc36 AsyncUDPSocket* socket = AsyncUDPSocket::Create(factory, local_addr); in CreateTestClient()
Dsocket_unittest.cc878 new TestClient(AsyncUDPSocket::Create(ss_, addr1))); in UdpInternal()
880 new TestClient(AsyncUDPSocket::Create(ss_, empty))); in UdpInternal()
892 client2.reset(new TestClient(AsyncUDPSocket::Create(ss_, empty))); in UdpInternal()
919 new TestClient(AsyncUDPSocket::Create(ss_, empty))); in UdpReadyToSend()
Dthread_unittest.cc53 : socket_(AsyncUDPSocket::Create(socket, addr)), in SocketClient()
76 AsyncUDPSocket* socket_;
/external/webrtc/webrtc/examples/relayserver/
Drelayserver_main.cc38 rtc::scoped_ptr<rtc::AsyncUDPSocket> int_socket( in main()
39 rtc::AsyncUDPSocket::Create(pthMain->socketserver(), int_addr)); in main()
46 rtc::scoped_ptr<rtc::AsyncUDPSocket> ext_socket( in main()
47 rtc::AsyncUDPSocket::Create(pthMain->socketserver(), ext_addr)); in main()
/external/webrtc/webrtc/p2p/base/
Dteststunserver.h27 rtc::AsyncUDPSocket* udp_socket = in Create()
28 rtc::AsyncUDPSocket::Create(socket, addr); in Create()
39 explicit TestStunServer(rtc::AsyncUDPSocket* socket) : StunServer(socket) {} in TestStunServer()
Drelayport_unittest.cc81 rtc::AsyncUDPSocket* ext_socket = in SetUp()
103 rtc::AsyncUDPSocket* internal_udp_socket = in TestConnectUdp()
206 rtc::AsyncUDPSocket* CreateAsyncUdpSocket(const SocketAddress addr) { in CreateAsyncUdpSocket()
209 rtc::AsyncUDPSocket* packet_socket = in CreateAsyncUdpSocket()
210 rtc::AsyncUDPSocket::Create(socket, addr); in CreateAsyncUdpSocket()
Dstunserver.h25 explicit StunServer(rtc::AsyncUDPSocket* socket);
61 rtc::scoped_ptr<rtc::AsyncUDPSocket> socket_;
Dstunserver_unittest.cc35 rtc::AsyncUDPSocket::Create(ss_.get(), server_addr))); in SetUp()
37 rtc::AsyncUDPSocket::Create(ss_.get(), client_addr))); in SetUp()
Dtestrelayserver.h34 server_.AddInternalSocket(rtc::AsyncUDPSocket::Create( in TestRelayServer()
36 server_.AddExternalSocket(rtc::AsyncUDPSocket::Create( in TestRelayServer()
Drelayserver_unittest.cc52 rtc::AsyncUDPSocket::Create(ss_.get(), server_int_addr)); in SetUp()
54 rtc::AsyncUDPSocket::Create(ss_.get(), server_ext_addr)); in SetUp()
57 rtc::AsyncUDPSocket::Create(ss_.get(), client1_addr))); in SetUp()
59 rtc::AsyncUDPSocket::Create(ss_.get(), client2_addr))); in SetUp()
Dstunserver.cc18 StunServer::StunServer(rtc::AsyncUDPSocket* socket) : socket_(socket) { in StunServer()
Dtestturnserver.h77 server_.AddInternalSocket(rtc::AsyncUDPSocket::Create( in AddInternalSocket()
Dbasicpacketsocketfactory.cc63 return new rtc::AsyncUDPSocket(socket); in CreateUdpSocket()
/external/webrtc/webrtc/examples/stunserver/
Dstunserver_main.cc36 rtc::AsyncUDPSocket* server_socket = in main()
37 rtc::AsyncUDPSocket::Create(pthMain->socketserver(), server_addr); in main()
/external/webrtc/webrtc/examples/turnserver/
Dturnserver_main.cc64 rtc::AsyncUDPSocket* int_socket = in main()
65 rtc::AsyncUDPSocket::Create(main->socketserver(), int_addr); in main()