Home
last modified time | relevance | path

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

12

/external/ltp/testcases/kernel/syscalls/recvmsg/
Drecvmsg03.c59 struct sockaddr_in server_addr; in client() local
66 memset(&server_addr, 0, sizeof(server_addr)); in client()
67 server_addr.sin_family = AF_INET; in client()
68 server_addr.sin_addr.s_addr = inet_addr("127.0.0.1"); in client()
69 server_addr.sin_port = htons(4001); in client()
71 SAFE_BIND(sock_fd1, (struct sockaddr *) &server_addr, sizeof(server_addr)); in client()
102 struct sockaddr_in server_addr; in server() local
109 memset(&server_addr, 0, sizeof(server_addr)); in server()
110 server_addr.sin_family = AF_INET; in server()
111 server_addr.sin_addr.s_addr = inet_addr("127.0.0.1"); in server()
[all …]
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clnttcp_create/
Drpc_clnttcp_create.c54 struct sockaddr_in server_addr; in main() local
64 bcopy(hp->h_addr, (caddr_t) & server_addr.sin_addr, hp->h_length); in main()
65 server_addr.sin_family = AF_INET; in main()
66 server_addr.sin_port = 0; in main()
69 clnt = clnttcp_create(&server_addr, progNum, VERSNUM, &sock, 0, 0); in main()
Drpc_clnttcp_create_stress.c55 struct sockaddr_in server_addr; in main() local
68 bcopy(hp->h_addr, (caddr_t) & server_addr.sin_addr, hp->h_length); in main()
69 server_addr.sin_family = AF_INET; in main()
70 server_addr.sin_port = 0; in main()
75 clnttcp_create(&server_addr, progNum, VERSNUM, &sock, 0, 0); in main()
Drpc_clnttcp_create_limits.c65 struct sockaddr_in server_addr; in main() local
75 bcopy(hp->h_addr, (caddr_t) & server_addr.sin_addr, hp->h_length); in main()
76 server_addr.sin_family = AF_INET; in main()
77 server_addr.sin_port = 0; in main()
101 clnttcp_create(&server_addr, progNum, VERSNUM, &sock, in main()
Drpc_clnttcp_create_performance.c101 struct sockaddr_in server_addr; in main() local
115 bcopy(hp->h_addr, (caddr_t) & server_addr.sin_addr, hp->h_length); in main()
116 server_addr.sin_family = AF_INET; in main()
117 server_addr.sin_port = 0; in main()
126 clnttcp_create(&server_addr, progNum, VERSNUM, &sock, 0, 0); in main()
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntudp_create/
Drpc_clntudp_create.c54 struct sockaddr_in server_addr; in main() local
68 bcopy(hp->h_addr, (caddr_t) & server_addr.sin_addr, hp->h_length); in main()
69 server_addr.sin_family = AF_INET; in main()
70 server_addr.sin_port = 0; in main()
74 clntudp_create(&server_addr, progNum, VERSNUM, pertry_timeout, in main()
Drpc_clntudp_create_stress.c55 struct sockaddr_in server_addr; in main() local
72 bcopy(hp->h_addr, (caddr_t) & server_addr.sin_addr, hp->h_length); in main()
73 server_addr.sin_family = AF_INET; in main()
74 server_addr.sin_port = 0; in main()
79 clntudp_create(&server_addr, progNum, VERSNUM, in main()
Drpc_clntudp_create_performance.c100 struct sockaddr_in server_addr; in main() local
117 bcopy(hp->h_addr, (caddr_t) & server_addr.sin_addr, hp->h_length); in main()
118 server_addr.sin_family = AF_INET; in main()
119 server_addr.sin_port = 0; in main()
128 clntudp_create(&server_addr, progNum, VERSNUM, in main()
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntudp_bufcreate/
Drpc_clntudp_bufcreate.c54 struct sockaddr_in server_addr; in main() local
68 bcopy(hp->h_addr, (caddr_t) & server_addr.sin_addr, hp->h_length); in main()
69 server_addr.sin_family = AF_INET; in main()
70 server_addr.sin_port = 0; in main()
74 clntudp_bufcreate(&server_addr, progNum, VERSNUM, pertry_timeout, in main()
Drpc_clntudp_bufcreate_limits.c65 struct sockaddr_in server_addr; in main() local
79 bcopy(hp->h_addr, (caddr_t) & server_addr.sin_addr, hp->h_length); in main()
80 server_addr.sin_family = AF_INET; in main()
81 server_addr.sin_port = 0; in main()
99 clntudp_bufcreate(&server_addr, progNum, VERSNUM, in main()
/external/ltp/testcases/kernel/syscalls/getpeername/
Dgetpeername01.c38 static struct sockaddr_in server_addr; variable
133 server_addr.sin_family = AF_INET; in setup()
134 server_addr.sin_port = 0; in setup()
135 server_addr.sin_addr.s_addr = INADDR_ANY; in setup()
157 (struct sockaddr *)&server_addr, sizeof(server_addr)); in setup3()
/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/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/
Dtirpc_authdes_create.c46 struct sockaddr server_addr; in main() local
50 authDes = authdes_create(argc[1], 60, &server_addr, NULL); in main()
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/
Dtirpc_authdes_seccreate.c51 struct sockaddr server_addr; in main() local
55 authDes = authdes_seccreate(argc[1], 60, (char *)&server_addr, NULL); in main()
/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()
/external/autotest/server/
Dsite_linux_router.py574 server_addr = netblock.from_addr(
580 params['netblock'] = server_addr
582 (server_addr.get_addr_in_block(1),
583 server_addr.get_addr_in_block(128)))
586 (server_addr.netblock,
587 server_addr.broadcast,
631 server_addr = params['netblock']
637 'dhcp-range=%s' % ','.join((server_addr.get_addr_in_block(1),
638 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()
/external/ltp/testcases/network/netstress/
Dnetstress.c86 static char *server_addr = "localhost"; variable
404 setup_addrinfo(server_addr, tcp_port, &hints, &remote_addrinfo); in client_init()
756 server_addr, tcp_port); in setup()
840 {"H:", &server_addr, "Client:\n-H x Server name or IP address"},
/external/python/cpython3/Lib/test/
Dtest_ssl.py1468 self.server_addr = (HOST, server.port)
1475 s.connect(self.server_addr)
1483 s.connect(self.server_addr)
1495 s.connect, self.server_addr)
1503 self.assertEqual(0, s.connect_ex(self.server_addr))
1515 rc = s.connect_ex(self.server_addr)
1536 s.connect(self.server_addr)
1541 s.connect(self.server_addr)
1546 s.connect(self.server_addr)
1559 s.connect, self.server_addr)
[all …]

12