Home
last modified time | relevance | path

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

12

/third_party/ltp/testcases/kernel/syscalls/recvmsg/
Drecvmsg03.c50 struct sockaddr_in server_addr; in client() local
57 memset(&server_addr, 0, sizeof(server_addr)); in client()
58 server_addr.sin_family = AF_INET; in client()
59 server_addr.sin_addr.s_addr = inet_addr("127.0.0.1"); in client()
60 server_addr.sin_port = htons(4001); in client()
62 SAFE_BIND(sock_fd1, (struct sockaddr *) &server_addr, sizeof(server_addr)); in client()
93 struct sockaddr_in server_addr; in server() local
100 memset(&server_addr, 0, sizeof(server_addr)); in server()
101 server_addr.sin_family = AF_INET; in server()
102 server_addr.sin_addr.s_addr = inet_addr("127.0.0.1"); in server()
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/network/
Dshutdown.c31 struct sockaddr_in server_addr; in shutdown_0100() local
32 bzero(&server_addr, sizeof(server_addr)); in shutdown_0100()
33 server_addr.sin_addr.s_addr = INADDR_ANY; in shutdown_0100()
34 server_addr.sin_addr.s_addr = INADDR_ANY; in shutdown_0100()
35 server_addr.sin_port = htons(9898); in shutdown_0100()
36 server_addr.sin_family = AF_INET; in shutdown_0100()
37 bind(sd, (struct sockaddr *)(&server_addr), sizeof(server_addr)); in shutdown_0100()
/third_party/ltp/testcases/kernel/syscalls/accept/
Daccept02.c39 static struct sockaddr_in *server_addr; variable
57 SAFE_BIND(server_sockfd, (struct sockaddr *)server_addr, addr_len); in server_thread()
87 SAFE_CONNECT(client_sockfd, (struct sockaddr *)server_addr, addr_len); in client_thread()
97 server_addr->sin_port = server_port; in run()
112 server_addr = tst_alloc(sizeof(*server_addr)); in setup()
121 server_addr->sin_family = AF_INET; in setup()
122 inet_aton(LOCALHOSTIP, &server_addr->sin_addr); in setup()
/third_party/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 memcpy((caddr_t) & server_addr.sin_addr, hp->h_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 memcpy((caddr_t) & server_addr.sin_addr, hp->h_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 memcpy((caddr_t) & server_addr.sin_addr, hp->h_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.c102 struct sockaddr_in server_addr; in main() local
116 memcpy((caddr_t) & server_addr.sin_addr, hp->h_addr, hp->h_length); in main()
117 server_addr.sin_family = AF_INET; in main()
118 server_addr.sin_port = 0; in main()
127 clnttcp_create(&server_addr, progNum, VERSNUM, &sock, 0, 0); in main()
/third_party/grpc/src/python/grpcio_tests/tests/unit/
D_local_credentials_test.py39 server_addr = 'localhost:{}'
46 port = server.add_secure_port(server_addr.format(0), server_creds)
48 with grpc.secure_channel(server_addr.format(port),
59 server_addr = 'unix:/tmp/grpc_fullstack_test'
66 server.add_secure_port(server_addr, server_creds)
68 with grpc.secure_channel(server_addr, channel_creds) as channel:
/third_party/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.c101 struct sockaddr_in server_addr; in main() local
118 bcopy(hp->h_addr, (caddr_t) & server_addr.sin_addr, hp->h_length); in main()
119 server_addr.sin_family = AF_INET; in main()
120 server_addr.sin_port = 0; in main()
129 clntudp_create(&server_addr, progNum, VERSNUM, in main()
/third_party/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()
/third_party/grpc/test/core/end2end/
Dh2_ssl_session_reuse_test.cc51 grpc_server* server_create(grpc_completion_queue* cq, const char* server_addr) { in server_create() argument
73 grpc_server_add_secure_http2_port(server, server_addr, server_creds)); in server_create()
83 grpc_channel* client_create(const char* server_addr, in client_create() argument
113 grpc_channel* client = grpc_secure_channel_create(client_creds, server_addr, in client_create()
130 const char* server_addr, grpc_ssl_session_cache* cache, in do_round_trip() argument
132 grpc_channel* client = client_create(server_addr, cache); in do_round_trip()
253 std::string server_addr = grpc_core::JoinHostPort("localhost", port); in TEST() local
258 grpc_server* server = server_create(cq, server_addr.c_str()); in TEST()
260 do_round_trip(cq, server, server_addr.c_str(), cache, false); in TEST()
261 do_round_trip(cq, server, server_addr.c_str(), cache, true); in TEST()
[all …]
/third_party/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()
/third_party/gstreamer/gstreamer/tests/check/libs/
Dgstnettimeprovider.c61 GSocketAddress *server_addr; in GST_START_TEST() local
79 server_addr = g_inet_socket_address_new (addr, port); in GST_START_TEST()
87 fail_unless (gst_net_time_packet_send (packet, socket, server_addr, NULL)); in GST_START_TEST()
102 g_object_unref (server_addr); in GST_START_TEST()
/third_party/grpc/test/core/end2end/fixtures/
Dh2_http_proxy.cc45 std::string server_addr; member
55 ffd->server_addr = grpc_core::JoinHostPort("localhost", server_port); in chttp2_create_fixture_fullstack()
85 f->client = grpc_insecure_channel_create(ffd->server_addr.c_str(), in chttp2_init_client_fullstack()
100 grpc_server_add_insecure_http2_port(f->server, ffd->server_addr.c_str())); in chttp2_init_server_fullstack()
/third_party/libuv/test/
Dbenchmark-ping-udp.c35 struct sockaddr_in server_addr; member
83 (const struct sockaddr*) &pinger->server_addr); in pinger_write_ping()
122 ASSERT(0 == uv_ip4_addr("127.0.0.1", TEST_PORT, &pinger->server_addr)); in udp_pinger_new()
129 r = uv_udp_bind(&pinger->udp, (const struct sockaddr*) &pinger->server_addr, 0); in udp_pinger_new()
Dtest-getsockname.c212 struct sockaddr_in server_addr; in tcp_connector() local
216 ASSERT(0 == uv_ip4_addr("127.0.0.1", server_port, &server_addr)); in tcp_connector()
224 (const struct sockaddr*) &server_addr, in tcp_connector()
306 struct sockaddr_in server_addr; in udp_sender() local
314 ASSERT(0 == uv_ip4_addr("127.0.0.1", server_port, &server_addr)); in udp_sender()
320 (const struct sockaddr*) &server_addr, in udp_sender()
Dtest-connection-fail.c89 struct sockaddr_in client_addr, server_addr; in connection_fail() local
95 ASSERT(0 == uv_ip4_addr("127.0.0.1", TEST_PORT, &server_addr)); in connection_fail()
107 (const struct sockaddr*) &server_addr, in connection_fail()
Dtest-shutdown-simultaneous.c110 struct sockaddr_in server_addr; in TEST_IMPL() local
116 ASSERT_EQ(0, uv_ip4_addr("127.0.0.1", TEST_PORT, &server_addr)); in TEST_IMPL()
122 (const struct sockaddr*) &server_addr, in TEST_IMPL()
Dtest-ping-pong.c217 struct sockaddr_in6 server_addr; in tcp_pinger_v6_new() local
221 ASSERT_EQ(0, uv_ip6_addr("::1", TEST_PORT, &server_addr)); in tcp_pinger_v6_new()
238 (const struct sockaddr*) &server_addr, in tcp_pinger_v6_new()
249 struct sockaddr_in server_addr; in tcp_pinger_new() local
252 ASSERT_EQ(0, uv_ip4_addr("127.0.0.1", TEST_PORT, &server_addr)); in tcp_pinger_new()
269 (const struct sockaddr*) &server_addr, in tcp_pinger_new()
Dtest-shutdown-eof.c154 struct sockaddr_in server_addr; in TEST_IMPL() local
165 ASSERT(0 == uv_ip4_addr("127.0.0.1", TEST_PORT, &server_addr)); in TEST_IMPL()
171 (const struct sockaddr*) &server_addr, in TEST_IMPL()
/third_party/lwip/src/apps/http/
Dhttp_client.c606 const ip_addr_t* server_addr, u16_t server_port, const char* uri, in httpc_init_connection_addr() argument
609 char *server_addr_str = ipaddr_ntoa(server_addr); in httpc_init_connection_addr()
632 httpc_get_file(const ip_addr_t* server_addr, u16_t port, const char* uri, const httpc_connection_t … in httpc_get_file() argument
638 …LWIP_ERROR("invalid parameters", (server_addr != NULL) && (uri != NULL) && (recv_fn != NULL), retu… in httpc_get_file()
640 err = httpc_init_connection_addr(&req, settings, server_addr, port, in httpc_get_file()
649 err = httpc_get_internal_addr(req, server_addr); in httpc_get_file()
818 httpc_get_file_to_disk(const ip_addr_t* server_addr, u16_t port, const char* uri, const httpc_conne… in httpc_get_file_to_disk() argument
825 …LWIP_ERROR("invalid parameters", (server_addr != NULL) && (uri != NULL) && (local_file_name != NUL… in httpc_get_file_to_disk()
832 err = httpc_init_connection_addr(&req, &filestate->settings, server_addr, port, in httpc_get_file_to_disk()
842 err = httpc_get_internal_addr(req, server_addr); in httpc_get_file_to_disk()
/third_party/mbedtls/programs/test/
Dudp_proxy_wrapper.sh79 server_addr=*:*) server_addr_orig="${param#*=}"; ipv6_in_use=1;;
80 server_addr=*) server_addr_orig="${param#*=}";;

12