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.c60 struct sockaddr_in server_addr; in client() local
67 memset(&server_addr, 0, sizeof(server_addr)); in client()
68 server_addr.sin_family = AF_INET; in client()
69 server_addr.sin_addr.s_addr = inet_addr("127.0.0.1"); in client()
70 server_addr.sin_port = htons(4001); in client()
72 SAFE_BIND(sock_fd1, (struct sockaddr *) &server_addr, sizeof(server_addr)); in client()
103 struct sockaddr_in server_addr; in server() local
110 memset(&server_addr, 0, sizeof(server_addr)); in server()
111 server_addr.sin_family = AF_INET; in server()
112 server_addr.sin_addr.s_addr = inet_addr("127.0.0.1"); in server()
[all …]
/external/grpc-grpc/test/core/end2end/
Dh2_ssl_session_reuse_test.cc48 grpc_server* server_create(grpc_completion_queue* cq, char* server_addr) { in server_create() argument
58 grpc_server_add_secure_http2_port(server, server_addr, server_creds)); in server_create()
65 grpc_channel* client_create(char* server_addr, grpc_ssl_session_cache* cache) { in client_create() argument
81 grpc_channel* client = grpc_secure_channel_create(client_creds, server_addr, in client_create()
95 char* server_addr, grpc_ssl_session_cache* cache, in do_round_trip() argument
97 grpc_channel* client = client_create(server_addr, cache); in do_round_trip()
218 char* server_addr; in TEST() local
219 gpr_join_host_port(&server_addr, "localhost", port); in TEST()
224 grpc_server* server = server_create(cq, server_addr); in TEST()
226 do_round_trip(cq, server, server_addr, cache, false); in TEST()
[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/grpc-grpc/test/core/end2end/fixtures/
Dh2_http_proxy.cc41 char* server_addr; member
52 gpr_join_host_port(&ffd->server_addr, "localhost", server_port); in chttp2_create_fixture_fullstack()
85 grpc_insecure_channel_create(ffd->server_addr, client_args, nullptr); in chttp2_init_client_fullstack()
98 GPR_ASSERT(grpc_server_add_insecure_http2_port(f->server, ffd->server_addr)); in chttp2_init_server_fullstack()
105 gpr_free(ffd->server_addr); in chttp2_tear_down_fullstack()
/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.py664 server_addr = netblock.from_addr(
670 params['netblock'] = server_addr
672 (server_addr.get_addr_in_block(1),
673 server_addr.get_addr_in_block(128)))
677 (server_addr.netblock,
678 server_addr.broadcast,
728 server_addr = params['netblock']
734 'dhcp-range=%s' % ','.join((server_addr.get_addr_in_block(1),
735 server_addr.get_addr_in_block(128))),
/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/antlr/runtime/ObjC/Framework/
DDebugEventSocketProxy.m132 struct sockaddr_in server_addr;
133 bzero(&server_addr, sizeof(struct sockaddr_in));
134 server_addr.sin_family = AF_INET;
135 server_addr.sin_port = htons([self debuggerPort]);
136 server_addr.sin_addr.s_addr = htonl(INADDR_ANY);
137 …NSAssert1( bind(serverSocket, (struct sockaddr *)&server_addr, sizeof(struct sockaddr)) != -1, @"b…
/external/ltp/testcases/network/netstress/
Dnetstress.c87 static char *server_addr = "localhost"; variable
476 setup_addrinfo(server_addr, tcp_port, &hints, &remote_addrinfo); in client_init()
895 server_addr, tcp_port); in setup()
1001 {"H:", &server_addr, "Client:\n-H x Server name or IP address"},
/external/python/cpython3/Lib/test/
Dtest_ssl.py1831 self.server_addr = (HOST, server.port)
1838 s.connect(self.server_addr)
1846 s.connect(self.server_addr)
1858 s.connect, self.server_addr)
1866 self.assertEqual(0, s.connect_ex(self.server_addr))
1878 rc = s.connect_ex(self.server_addr)
1899 s.connect(self.server_addr)
1904 s.connect(self.server_addr)
1909 s.connect(self.server_addr)
1922 s.connect, self.server_addr)
[all …]

12