Home
last modified time | relevance | path

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

/external/webrtc/rtc_base/
Dasync_udp_socket.cc27 AsyncUDPSocket* AsyncUDPSocket::Create(AsyncSocket* socket, in Create()
34 return new AsyncUDPSocket(owned_socket.release()); in Create()
37 AsyncUDPSocket* AsyncUDPSocket::Create(SocketFactory* factory, in Create()
46 AsyncUDPSocket::AsyncUDPSocket(AsyncSocket* socket) : socket_(socket) { in AsyncUDPSocket() function in rtc::AsyncUDPSocket
51 socket_->SignalReadEvent.connect(this, &AsyncUDPSocket::OnReadEvent); in AsyncUDPSocket()
52 socket_->SignalWriteEvent.connect(this, &AsyncUDPSocket::OnWriteEvent); in AsyncUDPSocket()
55 AsyncUDPSocket::~AsyncUDPSocket() { in ~AsyncUDPSocket()
59 SocketAddress AsyncUDPSocket::GetLocalAddress() const { in GetLocalAddress()
63 SocketAddress AsyncUDPSocket::GetRemoteAddress() const { in GetRemoteAddress()
67 int AsyncUDPSocket::Send(const void* pv, in Send()
[all …]
Dasync_udp_socket.h28 class AsyncUDPSocket : public AsyncPacketSocket {
33 static AsyncUDPSocket* Create(AsyncSocket* socket,
37 static AsyncUDPSocket* Create(SocketFactory* factory,
39 explicit AsyncUDPSocket(AsyncSocket* socket);
40 ~AsyncUDPSocket() override;
Dnat_server.h97 TransEntry(const SocketAddressPair& r, AsyncUDPSocket* s, NAT* nat);
104 AsyncUDPSocket* socket;
121 AsyncUDPSocket* udp_server_socket_;
Dasync_udp_socket_unittest.cc28 udp_socket_(new AsyncUDPSocket(socket_)), in AsyncUdpSocketTest()
40 std::unique_ptr<AsyncUDPSocket> udp_socket_;
Dnat_server.cc136 udp_server_socket_ = AsyncUDPSocket::Create(internal, internal_udp_addr); in NATServer()
215 AsyncUDPSocket* socket = AsyncUDPSocket::Create(external_, external_ip_); in Translate()
234 AsyncUDPSocket* s, in TransEntry()
Dvirtual_socket_unittest.cc59 socket(std::make_unique<AsyncUDPSocket>(s)), in Sender()
93 std::unique_ptr<AsyncUDPSocket> socket;
105 socket(std::make_unique<AsyncUDPSocket>(s)), in Receiver()
153 std::unique_ptr<AsyncUDPSocket> socket;
204 std::make_unique<AsyncUDPSocket>(socket), &fake_clock_); in TestDefaultRoute()
213 std::make_unique<AsyncUDPSocket>(socket2), &fake_clock_); in TestDefaultRoute()
237 std::make_unique<AsyncUDPSocket>(socket), &fake_clock_); in BasicTest()
241 std::make_unique<AsyncUDPSocket>(socket2), &fake_clock_); in BasicTest()
255 absl::WrapUnique(AsyncUDPSocket::Create(&ss_, empty)), &fake_clock_); in BasicTest()
841 std::make_unique<AsyncUDPSocket>(socket), &fake_clock_); in CrossFamilyDatagramTest()
[all …]
Dtest_client_unittest.cc47 TestClient client(std::make_unique<AsyncUDPSocket>(socket)); in TestUdpInternal()
Dsocket_unittest.cc921 new TestClient(absl::WrapUnique(AsyncUDPSocket::Create(ss_, addr1)))); in UdpInternal()
923 new TestClient(absl::WrapUnique(AsyncUDPSocket::Create(ss_, empty)))); in UdpInternal()
936 new TestClient(absl::WrapUnique(AsyncUDPSocket::Create(ss_, empty)))); in UdpInternal()
963 new TestClient(absl::WrapUnique(AsyncUDPSocket::Create(ss_, empty)))); in UdpReadyToSend()
Dnat_unittest.cc55 absl::WrapUnique(AsyncUDPSocket::Create(factory, local_addr))); in CreateTestClient()
Dthread_unittest.cc69 : socket_(AsyncUDPSocket::Create(socket, addr)), in SocketClient()
93 AsyncUDPSocket* socket_;
/external/webrtc/p2p/base/
Dtest_stun_server.cc22 rtc::AsyncUDPSocket* udp_socket = rtc::AsyncUDPSocket::Create(socket, addr); in Create()
Dstun_server.h32 explicit StunServer(rtc::AsyncUDPSocket* socket);
66 std::unique_ptr<rtc::AsyncUDPSocket> socket_;
Dstun_server_unittest.cc39 new StunServer(rtc::AsyncUDPSocket::Create(ss_.get(), server_addr))); in SetUp()
41 absl::WrapUnique(rtc::AsyncUDPSocket::Create(ss_.get(), client_addr)))); in SetUp()
Dtest_stun_server.h34 explicit TestStunServer(rtc::AsyncUDPSocket* socket) : StunServer(socket) {} in TestStunServer()
Dstun_server.cc20 StunServer::StunServer(rtc::AsyncUDPSocket* socket) : socket_(socket) { in StunServer()
Dtest_turn_server.h97 rtc::AsyncUDPSocket::Create(thread_->socketserver(), int_addr),
Dbasic_packet_socket_factory.cc58 return new AsyncUDPSocket(socket); in CreateUdpSocket()
/external/webrtc/examples/stunserver/
Dstunserver_main.cc34 rtc::AsyncUDPSocket* server_socket = in main()
35 rtc::AsyncUDPSocket::Create(pthMain->socketserver(), server_addr); in main()
/external/webrtc/examples/turnserver/
Dturnserver_main.cc73 rtc::AsyncUDPSocket* int_socket = in main()
74 rtc::AsyncUDPSocket::Create(main->socketserver(), int_addr); in main()
/external/webrtc/examples/androidvoip/jni/
Dandroid_voip_client.h146 std::unique_ptr<rtc::AsyncUDPSocket> rtp_socket_;
147 std::unique_ptr<rtc::AsyncUDPSocket> rtcp_socket_;
Dandroid_voip_client.cc252 rtp_socket_.reset(rtc::AsyncUDPSocket::Create(voip_thread_->socketserver(), in StartSession()
261 rtcp_socket_.reset(rtc::AsyncUDPSocket::Create(voip_thread_->socketserver(), in StartSession()