Home
last modified time | relevance | path

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

12

/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clnttcp_create/
Drpc_clnttcp_create.c55 struct sockaddr_in server_addr; in main() local
65 bcopy(hp->h_addr, (caddr_t) & server_addr.sin_addr, hp->h_length); in main()
66 server_addr.sin_family = AF_INET; in main()
67 server_addr.sin_port = 0; in main()
70 clnt = clnttcp_create(&server_addr, progNum, VERSNUM, &sock, 0, 0); in main()
Drpc_clnttcp_create_stress.c56 struct sockaddr_in server_addr; in main() local
69 bcopy(hp->h_addr, (caddr_t) & server_addr.sin_addr, hp->h_length); in main()
70 server_addr.sin_family = AF_INET; in main()
71 server_addr.sin_port = 0; in main()
76 clnttcp_create(&server_addr, progNum, VERSNUM, &sock, 0, 0); in main()
Drpc_clnttcp_create_limits.c66 struct sockaddr_in server_addr; in main() local
76 bcopy(hp->h_addr, (caddr_t) & server_addr.sin_addr, hp->h_length); in main()
77 server_addr.sin_family = AF_INET; in main()
78 server_addr.sin_port = 0; in main()
102 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.c55 struct sockaddr_in server_addr; in main() local
69 bcopy(hp->h_addr, (caddr_t) & server_addr.sin_addr, hp->h_length); in main()
70 server_addr.sin_family = AF_INET; in main()
71 server_addr.sin_port = 0; in main()
75 clntudp_create(&server_addr, progNum, VERSNUM, pertry_timeout, in main()
Drpc_clntudp_create_stress.c56 struct sockaddr_in server_addr; in main() local
73 bcopy(hp->h_addr, (caddr_t) & server_addr.sin_addr, hp->h_length); in main()
74 server_addr.sin_family = AF_INET; in main()
75 server_addr.sin_port = 0; in main()
80 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.c55 struct sockaddr_in server_addr; in main() local
69 bcopy(hp->h_addr, (caddr_t) & server_addr.sin_addr, hp->h_length); in main()
70 server_addr.sin_family = AF_INET; in main()
71 server_addr.sin_port = 0; in main()
75 clntudp_bufcreate(&server_addr, progNum, VERSNUM, pertry_timeout, in main()
Drpc_clntudp_bufcreate_limits.c66 struct sockaddr_in server_addr; in main() local
80 bcopy(hp->h_addr, (caddr_t) & server_addr.sin_addr, hp->h_length); in main()
81 server_addr.sin_family = AF_INET; in main()
82 server_addr.sin_port = 0; in main()
100 clntudp_bufcreate(&server_addr, progNum, VERSNUM, in main()
/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/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()
156 if (bind(test_cases[i].sockfd, (struct sockaddr *)&server_addr, in setup3()
157 sizeof(server_addr)) < 0) { in setup3()
/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/ltp/tools/netpipe-2.4-ipv6/
DTCP.c27 struct addrinfo *server_addr; in Setup() local
113 getaddrinfo(server_host, NULL, NULL, &server_addr); in Setup()
114 memcpy(&p->prot.sin1, server_addr->ai_addr, in Setup()
115 server_addr->ai_addrlen); in Setup()
116 if ((getaddrinfo(server_host, NULL, NULL, &server_addr)) in Setup()
122 memcpy(&p->prot.sin1, server_addr->ai_addr, in Setup()
123 server_addr->ai_addrlen); in Setup()
DTCP.h20 struct addrinfo *server_addr; /* Address of server */ member
/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.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/ltp/testcases/network/tcp_fastopen/
Dtcp_fastopen.c95 static char *server_addr = "localhost"; variable
117 {"H:", NULL, &server_addr},
148 server_addr); in help()
436 int err = getaddrinfo(server_addr, tcp_port, &hints, &remote_addrinfo); in client_init()
439 server_addr, gai_strerror(err)); in client_init()
757 server_addr, tcp_port); in setup()
/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()

12