Home
last modified time | relevance | path

Searched refs:server_addr (Results 1 – 12 of 12) sorted by relevance

/external/webrtc/webrtc/examples/stunserver/
Dstunserver_main.cc28 rtc::SocketAddress server_addr; in main() local
29 if (!server_addr.FromString(argv[1])) { in main()
37 rtc::AsyncUDPSocket::Create(pthMain->socketserver(), server_addr); in main()
45 std::cout << "Listening at " << server_addr.ToString() << std::endl; in main()
/external/valgrind/auxprogs/
Dvalgrind-listener.c256 struct sockaddr_in client_addr, server_addr; in main() local
313 server_addr.sin_family = AF_INET; in main()
314 server_addr.sin_addr.s_addr = htonl(INADDR_ANY); in main()
315 server_addr.sin_port = htons(port); in main()
317 if (bind(main_sd, (struct sockaddr *) &server_addr, in main()
318 sizeof(server_addr) ) < 0) { in main()
Dvalgrind-di-server.c1072 struct sockaddr_in client_addr, server_addr; in main() local
1123 server_addr.sin_family = AF_INET; in main()
1124 server_addr.sin_addr.s_addr = htonl(INADDR_ANY); in main()
1125 server_addr.sin_port = htons(port); in main()
1127 if (bind(main_sd, (struct sockaddr *) &server_addr, in main()
1128 sizeof(server_addr) ) < 0) { in main()
/external/webrtc/webrtc/base/
Dnat_unittest.cc55 SocketAddress server_addr = internal_addr; in TestSend() local
56 server_addr.SetPort(0); // Auto-select a port in TestSend()
57 NATServer* nat = new NATServer(nat_type, internal, server_addr, server_addr, in TestSend()
107 SocketAddress server_addr = internal_addr; in TestRecv() local
108 server_addr.SetPort(0); // Auto-select a port in TestRecv()
109 NATServer* nat = new NATServer(nat_type, internal, server_addr, server_addr, in TestRecv()
Dvirtualsocket_unittest.cc201 SocketAddress server_addr = socket->GetLocalAddress(); in BasicTest() local
203 EXPECT_EQ(server_addr.family(), initial_addr.family()); in BasicTest()
211 EXPECT_EQ(3, client2->SendTo("foo", 3, server_addr)); in BasicTest()
217 EXPECT_EQ(client1_addr, server_addr); in BasicTest()
224 EXPECT_EQ(3, client2->SendTo("foo", 3, server_addr)); in BasicTest()
232 EXPECT_EQ(server_addr2, server_addr); in BasicTest()
741 const SocketAddress& server_addr, in CrossFamilyConnectionTest() argument
757 AsyncSocket* server = ss_->CreateAsyncSocket(server_addr.family(), in CrossFamilyConnectionTest()
760 server->Bind(server_addr); in CrossFamilyConnectionTest()
791 const SocketAddress& server_addr, in CrossFamilyDatagramTest() argument
[all …]
/external/webrtc/webrtc/p2p/base/
Dstunserver_unittest.cc23 static const rtc::SocketAddress server_addr("99.99.99.1", 3478); variable
35 rtc::AsyncUDPSocket::Create(ss_.get(), server_addr))); in SetUp()
47 client_->SendTo(buf, len, server_addr); in Send()
Dstunport_unittest.cc58 void CreateStunPort(const rtc::SocketAddress& server_addr) { in CreateStunPort() argument
60 stun_servers.insert(server_addr); in CreateStunPort()
76 void CreateSharedStunPort(const rtc::SocketAddress& server_addr) { in CreateSharedStunPort() argument
88 stun_servers.insert(server_addr); in CreateSharedStunPort()
Dstunport.cc46 const rtc::SocketAddress& server_addr() const { return server_addr_; } in server_addr() function in cricket::StunBindingRequest
500 if (socket_->SendTo(data, size, sreq->server_addr(), options) < 0) in OnSendPacket()
Dport_unittest.cc506 const rtc::SocketAddress& server_addr) { in CreateTurnPort() argument
510 server_addr, PROTO_UDP), in CreateTurnPort()
/external/autotest/server/
Dsite_linux_router.py561 server_addr = netblock.from_addr(
567 params['netblock'] = server_addr
569 (server_addr.get_addr_in_block(1),
570 server_addr.get_addr_in_block(128)))
573 (server_addr.netblock,
574 server_addr.broadcast,
618 server_addr = params['netblock']
624 'dhcp-range=%s' % ','.join((server_addr.get_addr_in_block(1),
625 server_addr.get_addr_in_block(128))),
/external/antlr/antlr-3.4/runtime/ObjC/Framework/
DANTLRDebugEventProxy.m79 struct sockaddr_in server_addr;
80 bzero(&server_addr, sizeof(struct sockaddr_in));
81 server_addr.sin_family = AF_INET;
82 server_addr.sin_port = htons([self debuggerPort]);
83 server_addr.sin_addr.s_addr = htonl(INADDR_ANY);
84 …NSAssert1( bind(serverSocket, (struct sockaddr *)&server_addr, sizeof(struct sockaddr)) != -1, @"b…
/external/webrtc/webrtc/p2p/stunprober/
Dstunprober.cc54 rtc::IPAddress server_addr; member
151 request.server_addr = addr.ipaddr(); in SendStunRequest()
222 if (request->server_addr == ipaddr) { in GetRequestByAddress()
464 IncrementCounterByAddress(&num_request_per_server, request->server_addr); in GetStats()
475 IncrementCounterByAddress(&num_response_per_server, request->server_addr); in GetStats()