/external/webrtc/webrtc/base/ |
D | socketaddress.cc | 41 SocketAddress::SocketAddress() { in SocketAddress() function in rtc::SocketAddress 45 SocketAddress::SocketAddress(const std::string& hostname, int port) { in SocketAddress() function in rtc::SocketAddress 50 SocketAddress::SocketAddress(uint32_t ip_as_host_order_integer, int port) { in SocketAddress() function in rtc::SocketAddress 55 SocketAddress::SocketAddress(const IPAddress& ip, int port) { in SocketAddress() function in rtc::SocketAddress 60 SocketAddress::SocketAddress(const SocketAddress& addr) { in SocketAddress() function in rtc::SocketAddress 64 void SocketAddress::Clear() { in Clear() 72 bool SocketAddress::IsNil() const { in IsNil() 76 bool SocketAddress::IsComplete() const { in IsComplete() 80 SocketAddress& SocketAddress::operator=(const SocketAddress& addr) { in operator =() 89 void SocketAddress::SetIP(uint32_t ip_as_host_order_integer) { in SetIP() [all …]
|
D | natsocketfactory.h | 32 const SocketAddress& local_addr, SocketAddress* nat_addr) = 0; 40 NATSocketFactory(SocketFactory* factory, const SocketAddress& nat_udp_addr, 41 const SocketAddress& nat_tcp_addr); 52 const SocketAddress& local_addr, 53 SocketAddress* nat_addr) override; 57 SocketAddress nat_udp_addr_; 58 SocketAddress nat_tcp_addr_; 81 class TranslatorMap : private std::map<SocketAddress, Translator*> { 84 Translator* Get(const SocketAddress& ext_ip); 85 Translator* Add(const SocketAddress& ext_ip, Translator*); [all …]
|
D | socketaddress_unittest.cc | 37 SocketAddress addr; in TEST() 45 SocketAddress addr(IPAddress(0x01020304), 5678); in TEST() 54 SocketAddress addr("1.2.3.4", 5678); in TEST() 63 SocketAddress addr2(kTestV6AddrString, 1234); in TEST() 75 SocketAddress addr("255.255.255.255", 5678); in TEST() 84 SocketAddress addr("a.b.com", 5678); in TEST() 93 SocketAddress from("1.2.3.4", 5678); in TEST() 94 SocketAddress addr(from); in TEST() 103 SocketAddress from("1.2.3.4", 5678); in TEST() 104 SocketAddress addr(IPAddress(0x88888888), 9999); in TEST() [all …]
|
D | virtualsocketserver.h | 121 bool CloseTcpConnections(const SocketAddress& addr_local, 122 const SocketAddress& addr_remote); 132 int Bind(VirtualSocket* socket, SocketAddress* addr); 135 int Bind(VirtualSocket* socket, const SocketAddress& addr); 138 VirtualSocket* LookupBinding(const SocketAddress& addr); 140 int Unbind(const SocketAddress& addr, VirtualSocket* socket); 143 void AddConnection(const SocketAddress& client, 144 const SocketAddress& server, 148 VirtualSocket* LookupConnection(const SocketAddress& client, 149 const SocketAddress& server); [all …]
|
D | socketaddress.h | 28 class SocketAddress { 31 SocketAddress(); 35 SocketAddress(const std::string& hostname, int port); 39 SocketAddress(uint32_t ip_as_host_order_integer, int port); 42 SocketAddress(const IPAddress& ip, int port); 45 SocketAddress(const SocketAddress& addr); 57 SocketAddress& operator=(const SocketAddress& addr); 125 friend std::ostream& operator<<(std::ostream& os, const SocketAddress& addr); 146 bool operator ==(const SocketAddress& addr) const; 147 inline bool operator !=(const SocketAddress& addr) const { [all …]
|
D | natserver.h | 41 size_t operator()(const SocketAddress& r) const; 42 bool operator()(const SocketAddress& r1, const SocketAddress& r2) const; 64 const SocketAddress& internal_udp_addr, 65 const SocketAddress& internal_tcp_addr, 66 SocketFactory* external, const SocketAddress& external_ip); 69 SocketAddress internal_udp_address() const { in internal_udp_address() 73 SocketAddress internal_tcp_address() const { in internal_tcp_address() 79 size_t size, const SocketAddress& addr, 82 size_t size, const SocketAddress& remote_addr, 86 typedef std::set<SocketAddress, AddrCmp> AddressSet; [all …]
|
D | natsocketfactory.cc | 24 const SocketAddress& remote_addr) { in PackAddressForNAT() 49 SocketAddress* remote_addr) { in UnpackAddressFromNAT() 57 *remote_addr = SocketAddress(IPAddress(*v4addr), port); in UnpackAddressFromNAT() 62 *remote_addr = SocketAddress(IPAddress(*v6addr), port); in UnpackAddressFromNAT() 82 SocketAddress GetLocalAddress() const override { in GetLocalAddress() 83 return (socket_) ? socket_->GetLocalAddress() : SocketAddress(); in GetLocalAddress() 86 SocketAddress GetRemoteAddress() const override { in GetRemoteAddress() 90 int Bind(const SocketAddress& addr) override { in Bind() 112 int Connect(const SocketAddress& addr) override { in Connect() 138 const SocketAddress& addr) override { in SendTo() [all …]
|
D | virtualsocket_unittest.cc | 95 const SocketAddress& remote_addr, in OnReadPacket() 143 void CheckPortIncrementalization(const SocketAddress& post, in CheckPortIncrementalization() 144 const SocketAddress& pre) { in CheckPortIncrementalization() 172 SocketAddress client1_any_addr = socket->GetLocalAddress(); in TestDefaultRoute() 179 socket2->Bind(SocketAddress(default_route, 0)); in TestDefaultRoute() 180 SocketAddress client2_addr = socket2->GetLocalAddress(); in TestDefaultRoute() 186 SocketAddress client1_addr; in TestDefaultRoute() 190 SocketAddress(default_route, client1_any_addr.port())); in TestDefaultRoute() 197 void BasicTest(const SocketAddress& initial_addr) { in BasicTest() 201 SocketAddress server_addr = socket->GetLocalAddress(); in BasicTest() [all …]
|
D | nat_unittest.cc | 35 SocketFactory* factory, const SocketAddress& local_addr) { in CreateTestClient() 49 SocketServer* internal, const SocketAddress& internal_addr, in TestSend() 50 SocketServer* external, const SocketAddress external_addrs[4], in TestSend() 55 SocketAddress server_addr = internal_addr; in TestSend() 75 SocketAddress trans_addr; in TestSend() 80 SocketAddress trans_addr2; in TestSend() 101 SocketServer* internal, const SocketAddress& internal_addr, in TestRecv() 102 SocketServer* external, const SocketAddress external_addrs[4], in TestRecv() 107 SocketAddress server_addr = internal_addr; in TestRecv() 127 SocketAddress trans_addr; in TestRecv() [all …]
|
D | natserver.cc | 45 size_t AddrCmp::operator()(const SocketAddress& a) const { in operator ()() 55 const SocketAddress& a1, const SocketAddress& a2) const { in operator ()() 76 void SendConnectResult(int err, const SocketAddress& addr) override { in SendConnectResult() 94 SocketAddress dest_addr; in ProcessInput() 114 NATProxyServer(SocketFactory* int_factory, const SocketAddress& int_addr, in NATProxyServer() 115 SocketFactory* ext_factory, const SocketAddress& ext_ip) in NATProxyServer() 127 const SocketAddress& internal_udp_addr, in NATServer() 128 const SocketAddress& internal_tcp_addr, in NATServer() 129 SocketFactory* external, const SocketAddress& external_ip) in NATServer() 158 const SocketAddress& addr, const PacketTime& packet_time) { in OnInternalUDPPacket() [all …]
|
D | firewallsocketserver.h | 53 const SocketAddress& addr = SocketAddress()); 55 const SocketAddress& src, const SocketAddress& dst); 59 const SocketAddress& src, const SocketAddress& dst); 82 SocketAddress src; 83 SocketAddress dst; 104 const SocketAddress& addr = SocketAddress());
|
D | virtualsocketserver.cc | 65 Packet(const char* data, size_t size, const SocketAddress& from) in Packet() 78 const SocketAddress& from() const { return from_; } in from() 89 SocketAddress from_; 93 explicit MessageAddress(const SocketAddress& a) : addr(a) { } in MessageAddress() 94 SocketAddress addr; 125 SocketAddress VirtualSocket::GetLocalAddress() const { in GetLocalAddress() 131 SocketAddress VirtualSocket::GetRemoteAddress() const { in GetRemoteAddress() 135 void VirtualSocket::SetLocalAddress(const SocketAddress& addr) { in SetLocalAddress() 139 void VirtualSocket::SetAlternativeLocalAddress(const SocketAddress& addr) { in SetAlternativeLocalAddress() 143 int VirtualSocket::Bind(const SocketAddress& addr) { in Bind() [all …]
|
D | macasyncsocket.h | 36 SocketAddress GetLocalAddress() const override; 37 SocketAddress GetRemoteAddress() const override; 38 int Bind(const SocketAddress& addr) override; 39 int Connect(const SocketAddress& addr) override; 43 const SocketAddress& addr) override; 45 int RecvFrom(void* buffer, size_t length, SocketAddress* out_addr) override; 47 MacAsyncSocket* Accept(SocketAddress* out_addr) override; 62 int DoConnect(const SocketAddress& addr); 74 static CFDataRef CopyCFAddress(const SocketAddress& address);
|
D | socketadapters.h | 64 const SocketAddress&> SignalConnectRequest; 65 virtual void SendConnectResult(int err, const SocketAddress& addr) = 0; 76 int Connect(const SocketAddress& addr) override; 101 const SocketAddress& proxy, 110 int Connect(const SocketAddress& addr) override; 111 SocketAddress GetRemoteAddress() const override; 127 SocketAddress proxy_, dest_; 160 AsyncSocksProxySocket(AsyncSocket* socket, const SocketAddress& proxy, 164 int Connect(const SocketAddress& addr) override; 165 SocketAddress GetRemoteAddress() const override; [all …]
|
D | testclient_unittest.cc | 20 void TestUdpInternal(const SocketAddress& loopback) { in TestUdpInternal() 27 SocketAddress addr = client.address(), from; in TestUdpInternal() 34 void TestTcpInternal(const SocketAddress& loopback) { in TestTcpInternal() 45 SocketAddress addr = client.address(), from; in TestTcpInternal() 55 TestUdpInternal(SocketAddress("127.0.0.1", 0)); in TEST() 65 TestUdpInternal(SocketAddress("::1", 0)); in TEST() 73 TestTcpInternal(SocketAddress("127.0.0.1", 0)); in TEST() 83 TestTcpInternal(SocketAddress("::1", 0)); in TEST()
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | InternalSubchannelTest.java | 50 import java.net.SocketAddress; 155 SocketAddress addr = new SocketAddress() {}; in eagAttribute_propagatesToTransport() 167 SocketAddress addr = mock(SocketAddress.class); in singleAddressReconnect() 263 SocketAddress addr1 = mock(SocketAddress.class); in twoAddressesReconnect() 264 SocketAddress addr2 = mock(SocketAddress.class); in twoAddressesReconnect() 414 SocketAddress addr = new FakeSocketAddress(); in updateAddresses_emptyEagList_throws() 422 SocketAddress addr = new FakeSocketAddress(); in updateAddresses_eagListWithNull_throws() 430 SocketAddress addr1 = mock(SocketAddress.class); in updateAddresses_intersecting_ready() 431 SocketAddress addr2 = mock(SocketAddress.class); in updateAddresses_intersecting_ready() 432 SocketAddress addr3 = mock(SocketAddress.class); in updateAddresses_intersecting_ready() [all …]
|
/external/deqp/framework/delibs/decpp/ |
D | deSocket.cpp | 34 SocketAddress::SocketAddress (void) in SocketAddress() function in de::SocketAddress 41 SocketAddress::~SocketAddress (void) in ~SocketAddress() 46 void SocketAddress::setHost (const char* host) in setHost() 52 void SocketAddress::setPort (int port) in setPort() 58 void SocketAddress::setFamily (deSocketFamily family) in setFamily() 64 void SocketAddress::setType (deSocketType type) in setType() 70 void SocketAddress::setProtocol (deSocketProtocol protocol) in setProtocol() 96 void Socket::listen (const SocketAddress& address) in listen() 102 void Socket::connect (const SocketAddress& address) in connect()
|
D | deSocket.hpp | 41 class SocketAddress class 44 SocketAddress (void); 45 ~SocketAddress (void); 66 SocketAddress (const SocketAddress& other); 67 SocketAddress& operator= (const SocketAddress& other); 83 void listen (const SocketAddress& address); 84 Socket* accept (SocketAddress& clientAddress) { return accept(clientAddress.getPtr()); } in accept() 87 void connect (const SocketAddress& address);
|
/external/webrtc/webrtc/p2p/base/ |
D | stunport.h | 70 rtc::SocketAddress GetLocalAddress() const { in GetLocalAddress() 92 const rtc::SocketAddress& remote_addr, in HandleIncomingPacket() 133 const rtc::SocketAddress& addr, 138 const rtc::SocketAddress& address); 141 const rtc::SocketAddress& remote_addr, 158 bool MaybeSetDefaultLocalAddress(rtc::SocketAddress* addr) const; 169 void Resolve(const rtc::SocketAddress& address); 170 bool GetResolvedAddress(const rtc::SocketAddress& input, 172 rtc::SocketAddress* output) const; 177 sigslot::signal2<const rtc::SocketAddress&, int> SignalDone; [all …]
|
D | stunport.cc | 37 const rtc::SocketAddress& addr, in StunBindingRequest() 46 const rtc::SocketAddress& server_addr() const { return server_addr_; } in server_addr() 61 rtc::SocketAddress addr(addr_attr->ipaddr(), addr_attr->port()); in OnResponse() 105 const rtc::SocketAddress server_addr_; 125 const rtc::SocketAddress& address) { in Resolve() 132 std::pair<rtc::SocketAddress, rtc::AsyncResolverInterface*>( in Resolve() 142 const rtc::SocketAddress& input, in GetResolvedAddress() 144 rtc::SocketAddress* output) const { in GetResolvedAddress() 218 rtc::SocketAddress(ip(), 0), min_port(), max_port()); in Init() 276 const rtc::SocketAddress& addr, in SendTo() [all …]
|
D | turnport.h | 78 rtc::SocketAddress GetLocalAddress() const; 90 const rtc::SocketAddress& addr, 99 const rtc::SocketAddress& remote_addr, in HandleIncomingPacket() 106 const rtc::SocketAddress& remote_addr, 139 const rtc::SocketAddress&, 140 const rtc::SocketAddress&> SignalResolvedServerAddress; 144 sigslot::signal3<TurnPort*, const rtc::SocketAddress&, int> 153 bool SetEntryChannelId(const rtc::SocketAddress& address, int channel_id); 190 typedef std::set<rtc::SocketAddress> AttemptedServerSet; 207 bool SetAlternateServer(const rtc::SocketAddress& address); [all …]
|
D | stunserver.h | 33 const rtc::SocketAddress& remote_addr, 38 const rtc::SocketAddress& addr); 40 const rtc::SocketAddress& addr); 42 const rtc::SocketAddress& addr); 44 const rtc::SocketAddress& addr); 48 const StunMessage& msg, const rtc::SocketAddress& addr, 53 const rtc::SocketAddress& addr); 57 const rtc::SocketAddress& remote_addr,
|
D | relayport_unittest.cc | 25 using rtc::SocketAddress; 27 static const SocketAddress kLocalAddress = SocketAddress("192.168.1.2", 0); 28 static const SocketAddress kRelayUdpAddr = SocketAddress("99.99.99.1", 5000); 29 static const SocketAddress kRelayTcpAddr = SocketAddress("99.99.99.2", 5001); 30 static const SocketAddress kRelaySslAddr = SocketAddress("99.99.99.3", 443); 31 static const SocketAddress kRelayExtAddr = SocketAddress("99.99.99.3", 5002); 65 const rtc::SocketAddress& remote_addr, in OnReadPacket() 206 rtc::AsyncUDPSocket* CreateAsyncUdpSocket(const SocketAddress addr) { in CreateAsyncUdpSocket() 216 rtc::AsyncSocket* CreateServerSocket(const SocketAddress addr) { in CreateServerSocket()
|
/external/webrtc/webrtc/p2p/client/ |
D | portallocator_unittest.cc | 36 using rtc::SocketAddress; 39 static const SocketAddress kClientAddr("11.11.11.11", 0); 40 static const SocketAddress kLoopbackAddr("127.0.0.1", 0); 41 static const SocketAddress kPrivateAddr("192.168.1.11", 0); 42 static const SocketAddress kPrivateAddr2("192.168.1.12", 0); 43 static const SocketAddress kClientIPv6Addr( 45 static const SocketAddress kClientAddr2("22.22.22.22", 0); 46 static const SocketAddress kNatUdpAddr("77.77.77.77", rtc::NAT_SERVER_UDP_PORT); 47 static const SocketAddress kNatTcpAddr("77.77.77.77", rtc::NAT_SERVER_TCP_PORT); 48 static const SocketAddress kRemoteClientAddr("22.22.22.22", 0); [all …]
|
/external/webrtc/webrtc/test/channel_transport/ |
D | udp_transport_impl.h | 108 const SocketAddress& to) override; 111 const SocketAddress& to) override; 131 int32_t IPAddressCached(const SocketAddress& address, 143 const SocketAddress* from); 147 const SocketAddress* from); 158 SocketAddress& remoteAddr) const; 168 const SocketAddress* from); 171 const SocketAddress* from); 173 bool FilterIPAddress(const SocketAddress* fromAddress); 226 SocketAddress _remoteRTPAddr; [all …]
|