Home
last modified time | relevance | path

Searched refs:GetLocalAddress (Results 1 – 25 of 42) sorted by relevance

12

/external/webrtc/webrtc/base/
Dsocket_unittest.cc201 EXPECT_PRED1(IsUnspecOrEmptyIP, client->GetLocalAddress().ipaddr()); in ConnectInternal()
217 EXPECT_EQ(0, client->Connect(server->GetLocalAddress())); in ConnectInternal()
218 EXPECT_FALSE(client->GetLocalAddress().IsNil()); in ConnectInternal()
219 EXPECT_NE(server->GetLocalAddress(), client->GetLocalAddress()); in ConnectInternal()
235 EXPECT_EQ(server->GetLocalAddress(), accepted->GetLocalAddress()); in ConnectInternal()
236 EXPECT_EQ(client->GetLocalAddress(), accepted->GetRemoteAddress()); in ConnectInternal()
242 EXPECT_EQ(client->GetRemoteAddress(), server->GetLocalAddress()); in ConnectInternal()
243 EXPECT_EQ(client->GetRemoteAddress(), accepted->GetLocalAddress()); in ConnectInternal()
264 SocketAddress dns_addr(server->GetLocalAddress()); in ConnectWithDnsLookupInternal()
284 EXPECT_EQ(server->GetLocalAddress(), accepted->GetLocalAddress()); in ConnectWithDnsLookupInternal()
[all …]
Dvirtualsocket_unittest.cc172 SocketAddress client1_any_addr = socket->GetLocalAddress(); in TestDefaultRoute()
180 SocketAddress client2_addr = socket2->GetLocalAddress(); in TestDefaultRoute()
201 SocketAddress server_addr = socket->GetLocalAddress(); in BasicTest()
250 EXPECT_TRUE(client->GetLocalAddress().IsNil()); in ConnectTest()
258 EXPECT_EQ(server->GetLocalAddress().family(), initial_addr.family()); in ConnectTest()
268 EXPECT_EQ(0, client->Connect(server->GetLocalAddress())); in ConnectTest()
269 EXPECT_NE(client->GetLocalAddress(), kEmptyAddr); // Implicit Bind in ConnectTest()
270 EXPECT_NE(AF_UNSPEC, client->GetLocalAddress().family()); // Implicit Bind in ConnectTest()
271 EXPECT_NE(client->GetLocalAddress(), server->GetLocalAddress()); in ConnectTest()
293 EXPECT_EQ(accepted->GetLocalAddress(), server->GetLocalAddress()); in ConnectTest()
[all …]
Dfirewallsocketserver.cc30 if (!server_->Check(FP_TCP, GetLocalAddress(), addr)) { in Connect()
32 << GetLocalAddress().ToSensitiveString() << " to " in Connect()
46 if (!server_->Check(FP_UDP, GetLocalAddress(), addr)) { in SendTo()
48 << GetLocalAddress().ToSensitiveString() << " to " in SendTo()
65 if (server_->Check(FP_UDP, *paddr, GetLocalAddress())) in RecvFrom()
69 << GetLocalAddress().ToSensitiveString() << " dropped"; in RecvFrom()
86 if (server_->Check(FP_TCP, addr, GetLocalAddress())) { in Accept()
95 << GetLocalAddress().ToSensitiveString() << " denied"; in Accept()
Dphysicalsocketserver_unittest.cc135 EXPECT_PRED1(IsUnspecOrEmptyIP, client1->GetLocalAddress().ipaddr()); in ConnectInternalAcceptError()
141 EXPECT_PRED1(IsUnspecOrEmptyIP, client2->GetLocalAddress().ipaddr()); in ConnectInternalAcceptError()
157 EXPECT_EQ(0, client1->Connect(server->GetLocalAddress())); in ConnectInternalAcceptError()
158 EXPECT_FALSE(client1->GetLocalAddress().IsNil()); in ConnectInternalAcceptError()
159 EXPECT_NE(server->GetLocalAddress(), client1->GetLocalAddress()); in ConnectInternalAcceptError()
180 EXPECT_EQ(0, client2->Connect(server->GetLocalAddress())); in ConnectInternalAcceptError()
181 EXPECT_FALSE(client2->GetLocalAddress().IsNil()); in ConnectInternalAcceptError()
182 EXPECT_NE(server->GetLocalAddress(), client2->GetLocalAddress()); in ConnectInternalAcceptError()
Dasyncudpsocket.cc53 SocketAddress AsyncUDPSocket::GetLocalAddress() const { in GetLocalAddress() function in rtc::AsyncUDPSocket
54 return socket_->GetLocalAddress(); in GetLocalAddress()
112 SocketAddress local_addr = socket_->GetLocalAddress(); in OnReadEvent()
Dasyncsocket.cc41 SocketAddress AsyncSocketAdapter::GetLocalAddress() const { in GetLocalAddress() function in rtc::AsyncSocketAdapter
42 return socket_->GetLocalAddress(); in GetLocalAddress()
Dssladapter_unittest.cc62 return ssl_adapter_->GetLocalAddress(); in GetAddress()
149 << " server listening on " << server_socket_->GetLocalAddress(); in SSLAdapterTestDummyServer()
153 return server_socket_->GetLocalAddress(); in GetAddress()
Dvirtualsocketserver.cc125 SocketAddress VirtualSocket::GetLocalAddress() const { in GetLocalAddress() function in rtc::VirtualSocket
423 SignalAddressReady(this, GetLocalAddress()); in OnMessage()
739 << socket->GetLocalAddress() << " and " << remote_addr; in Connect()
743 SocketAddress addr = socket->GetLocalAddress(); in Connect()
779 << socket->GetLocalAddress() << " and " << remote_addr; in SendUdp()
788 << socket->GetLocalAddress() << " and " << remote_addr; in SendUdp()
1077 IPAddress local_ip = local->GetLocalAddress().ipaddr(); in CanInteractWith()
1078 IPAddress remote_ip = remote->GetLocalAddress().ipaddr(); in CanInteractWith()
Dasyncudpsocket.h36 SocketAddress GetLocalAddress() const override;
Dasynctcpsocket.cc81 SocketAddress AsyncTCPSocketBase::GetLocalAddress() const { in GetLocalAddress() function in rtc::AsyncTCPSocketBase
82 return socket_->GetLocalAddress(); in GetLocalAddress()
Dnatserver.cc183 SocketAddress local_addr = socket->GetLocalAddress(); in OnExternalUDPPacket()
219 (*ext_map_)[socket->GetLocalAddress()] = entry; in Translate()
Dtestclient.h43 SocketAddress address() const { return socket_->GetLocalAddress(); } in address()
Dnat_unittest.cc192 int sent = client->SendTo(buf, len, server->GetLocalAddress()); in TestConnectivity()
372 EXPECT_GE(0, client_->Connect(server_->GetLocalAddress())); in TEST_F()
377 EXPECT_EQ(client_->GetRemoteAddress(), server_->GetLocalAddress()); in TEST_F()
Dtestechoserver.h40 SocketAddress address() const { return server_socket_->GetLocalAddress(); } in address()
Dmacasyncsocket.h36 SocketAddress GetLocalAddress() const override;
Dnatserver.h70 return udp_server_socket_->GetLocalAddress(); in internal_udp_address()
Dasyncsocket.h53 SocketAddress GetLocalAddress() const override;
Dasyncpacketsocket.h82 virtual SocketAddress GetLocalAddress() const = 0;
Dasynctcpsocket.h35 SocketAddress GetLocalAddress() const override;
/external/webrtc/webrtc/p2p/base/
Dtcpport.cc178 AddAddress(socket_->GetLocalAddress(), socket_->GetLocalAddress(), in PrepareAddress()
321 << "socket ipaddr: " << socket_->GetLocalAddress().ToString() in TCPConnection()
323 ASSERT(socket_->GetLocalAddress().ipaddr() == port->ip()); in TCPConnection()
390 const rtc::IPAddress& socket_ip = socket->GetLocalAddress().ipaddr(); in OnConnect()
397 << socket->GetLocalAddress().ipaddr().ToString() in OnConnect()
494 << "Connecting from " << socket_->GetLocalAddress().ToSensitiveString() in CreateOutgoingTcpSocket()
Dstunport.cc97 << port_->GetLocalAddress().ToSensitiveString() in OnTimeout()
174 socket->GetLocalAddress().ipaddr(), in UDPPort()
240 OnLocalAddressReady(socket_, socket_->GetLocalAddress()); in PrepareAddress()
441 if ((!SharedSocket() || stun_reflected_addr != socket_->GetLocalAddress()) && in OnStunBindingRequestSucceeded()
444 rtc::SocketAddress related_address = socket_->GetLocalAddress(); in OnStunBindingRequestSucceeded()
454 AddAddress(stun_reflected_addr, socket_->GetLocalAddress(), related_address, in OnStunBindingRequestSucceeded()
Dturnport_unittest.cc152 ss_->LookupBinding(socket->GetLocalAddress()); in ConnectSignalAddressReadyToSetLocalhostAsAltenertativeLocalAddress()
615 rtc::SocketAddress first_addr(turn_port_->socket()->GetLocalAddress()); in TEST_F()
629 EXPECT_EQ(first_addr, turn_port_->socket()->GetLocalAddress()); in TEST_F()
634 EXPECT_NE(first_addr, turn_port_->socket()->GetLocalAddress()); in TEST_F()
644 rtc::SocketAddress first_addr(turn_port_->socket()->GetLocalAddress()); in TEST_F()
654 EXPECT_EQ(first_addr, turn_port_->socket()->GetLocalAddress()); in TEST_F()
661 EXPECT_NE(first_addr, turn_port_->socket()->GetLocalAddress()); in TEST_F()
672 rtc::SocketAddress first_addr(turn_port_->socket()->GetLocalAddress()); in TEST_F()
686 EXPECT_EQ(first_addr, turn_port_->socket()->GetLocalAddress()); in TEST_F()
691 EXPECT_NE(first_addr, turn_port_->socket()->GetLocalAddress()); in TEST_F()
[all …]
Dturnport.cc195 socket->GetLocalAddress().ipaddr(), in TurnPort()
269 rtc::SocketAddress TurnPort::GetLocalAddress() const { in GetLocalAddress() function in cricket::TurnPort
270 return socket_ ? socket_->GetLocalAddress() : rtc::SocketAddress(); in GetLocalAddress()
379 if (socket->GetLocalAddress().ipaddr() != ip()) { in OnSocketConnect()
380 if (socket->GetLocalAddress().IsLoopbackIP()) { in OnSocketConnect()
382 << socket->GetLocalAddress().ipaddr().ToString() in OnSocketConnect()
387 << socket->GetLocalAddress().ipaddr().ToString() in OnSocketConnect()
393 << socket->GetLocalAddress().ipaddr().ToString() in OnSocketConnect()
Dstunport.h70 rtc::SocketAddress GetLocalAddress() const { in GetLocalAddress() function
71 return socket_->GetLocalAddress(); in GetLocalAddress()
Drelayserver.cc187 rtc::SocketAddressPair ap(remote_addr, socket->GetLocalAddress()); in OnInternalPacket()
232 rtc::SocketAddressPair ap(remote_addr, socket->GetLocalAddress()); in OnExternalPacket()
429 external_sockets_[index]->GetLocalAddress(); in HandleStunAllocate()
474 rtc::SocketAddressPair ap(ext_addr, socket->GetLocalAddress()); in HandleStunSend()

12