Home
last modified time | relevance | path

Searched refs:localaddr (Results 1 – 25 of 33) sorted by relevance

12

/third_party/ffmpeg/libavformat/
Dsapenc.c76 struct sockaddr_storage localaddr; in sap_write_header() local
77 socklen_t addrlen = sizeof(localaddr); in sap_write_header()
186 if (getsockname(udp_fd, (struct sockaddr*) &localaddr, &addrlen)) { in sap_write_header()
190 if (localaddr.ss_family != AF_INET in sap_write_header()
192 && localaddr.ss_family != AF_INET6 in sap_write_header()
207 if (localaddr.ss_family == AF_INET6) in sap_write_header()
214 if (localaddr.ss_family == AF_INET) { in sap_write_header()
215 memcpy(&sap->ann[pos], &((struct sockaddr_in*)&localaddr)->sin_addr, in sap_write_header()
220 memcpy(&sap->ann[pos], &((struct sockaddr_in6*)&localaddr)->sin6_addr, in sap_write_header()
Dudp.c114 char *localaddr; member
131 …{ "localaddr", "Local address", OFFSET(localaddr), AV_…
335 socklen_t *addr_len, const char *localaddr) in udp_socket_create() argument
344 res0 = ff_ip_resolve_host(h, (localaddr && localaddr[0]) ? localaddr : NULL, in udp_socket_create()
628 char hostname[1024], localaddr[1024] = ""; in udp_open() local
713 av_strlcpy(localaddr, buf, sizeof(localaddr)); in udp_open()
753 if (localaddr[0]) in udp_open()
754 udp_fd = udp_socket_create(h, &my_addr, &len, localaddr); in udp_open()
756 udp_fd = udp_socket_create(h, &my_addr, &len, s->localaddr); in udp_open()
/third_party/grpc/test/core/end2end/fixtures/
Dh2_uds.cc44 std::string localaddr; member
52 ffd->localaddr = absl::StrFormat("unix:/tmp/grpc_fullstack_test.%d.%d", in chttp2_create_fixture_fullstack()
68 f->client = grpc_insecure_channel_create(ffd->localaddr.c_str(), client_args, in chttp2_init_client_fullstack()
82 grpc_server_add_insecure_http2_port(f->server, ffd->localaddr.c_str())); in chttp2_init_server_fullstack()
Dh2_full.cc38 std::string localaddr; member
48 ffd->localaddr = grpc_core::JoinHostPort("localhost", port); in chttp2_create_fixture_fullstack()
61 f->client = grpc_insecure_channel_create(ffd->localaddr.c_str(), client_args, in chttp2_init_client_fullstack()
76 grpc_server_add_insecure_http2_port(f->server, ffd->localaddr.c_str())); in chttp2_init_server_fullstack()
Dh2_full+pipe.cc44 std::string localaddr; member
54 ffd->localaddr = grpc_core::JoinHostPort("localhost", port); in chttp2_create_fixture_fullstack()
67 f->client = grpc_insecure_channel_create(ffd->localaddr.c_str(), client_args, in chttp2_init_client_fullstack()
82 grpc_server_add_insecure_http2_port(f->server, ffd->localaddr.c_str())); in chttp2_init_server_fullstack()
Dh2_full+trace.cc44 std::string localaddr; member
54 ffd->localaddr = grpc_core::JoinHostPort("localhost", port); in chttp2_create_fixture_fullstack()
67 f->client = grpc_insecure_channel_create(ffd->localaddr.c_str(), client_args, in chttp2_init_client_fullstack()
82 grpc_server_add_insecure_http2_port(f->server, ffd->localaddr.c_str())); in chttp2_init_server_fullstack()
Dh2_compress.cc44 std::string localaddr; member
55 ffd->localaddr = grpc_core::JoinHostPort("localhost", port); in chttp2_create_fixture_fullstack_compression()
77 ffd->localaddr.c_str(), ffd->client_args_compression, nullptr); in chttp2_init_client_fullstack_compression()
97 grpc_server_add_insecure_http2_port(f->server, ffd->localaddr.c_str())); in chttp2_init_server_fullstack_compression()
Dh2_census.cc39 std::string localaddr; member
48 ffd->localaddr = grpc_core::JoinHostPort("localhost", port); in chttp2_create_fixture_fullstack()
71 f->client = grpc_insecure_channel_create(ffd->localaddr.c_str(), client_args, in chttp2_init_client_fullstack()
96 grpc_server_add_insecure_http2_port(f->server, ffd->localaddr.c_str())); in chttp2_init_server_fullstack()
Dh2_full+workarounds.cc43 std::string localaddr; member
52 ffd->localaddr = grpc_core::JoinHostPort("localhost", port); in chttp2_create_fixture_fullstack()
63 f->client = grpc_insecure_channel_create(ffd->localaddr.c_str(), client_args, in chttp2_init_client_fullstack()
88 grpc_server_add_insecure_http2_port(f->server, ffd->localaddr.c_str())); in chttp2_init_server_fullstack()
Dh2_fakesec.cc34 std::string localaddr; member
43 ffd->localaddr = grpc_core::JoinHostPort("localhost", port); in chttp2_create_fixture_secure_fullstack()
66 f->client = grpc_secure_channel_create(creds, ffd->localaddr.c_str(), in chttp2_init_client_secure_fullstack()
83 f->server, ffd->localaddr.c_str(), server_creds)); in chttp2_init_server_secure_fullstack()
Dh2_ssl.cc41 std::string localaddr; member
53 ffd->localaddr = grpc_core::JoinHostPort("localhost", port); in chttp2_create_fixture_secure_fullstack()
89 f->client = grpc_secure_channel_create(creds, ffd->localaddr.c_str(), in chttp2_init_client_secure_fullstack()
106 f->server, ffd->localaddr.c_str(), server_creds)); in chttp2_init_server_secure_fullstack()
Dh2_ssl_cred_reload.cc41 std::string localaddr; member
88 ffd->localaddr = grpc_core::JoinHostPort("localhost", port); in chttp2_create_fixture_secure_fullstack()
124 f->client = grpc_secure_channel_create(creds, ffd->localaddr.c_str(), in chttp2_init_client_secure_fullstack()
142 f->server, ffd->localaddr.c_str(), server_creds)); in chttp2_init_server_secure_fullstack()
Dh2_oauth2.cc43 std::string localaddr; member
104 ffd->localaddr = grpc_core::JoinHostPort("localhost", port); in chttp2_create_fixture_secure_fullstack()
129 f->client = grpc_secure_channel_create(creds, ffd->localaddr.c_str(), in chttp2_init_client_secure_fullstack()
146 f->server, ffd->localaddr.c_str(), server_creds)); in chttp2_init_server_secure_fullstack()
Dh2_tls.cc54 std::string localaddr; member
66 ffd->localaddr = grpc_core::JoinHostPort("localhost", port); in chttp2_create_fixture_secure_fullstack()
100 f->client = grpc_secure_channel_create(creds, ffd->localaddr.c_str(), in chttp2_init_client_secure_fullstack()
117 f->server, ffd->localaddr.c_str(), server_creds)); in chttp2_init_server_secure_fullstack()
Dlocal_util.cc53 f->client = grpc_secure_channel_create(creds, ffd->localaddr.c_str(), in grpc_end2end_local_chttp2_init_client_fullstack()
102 ffd->localaddr.c_str(), creds)); in grpc_end2end_local_chttp2_init_server_fullstack()
Dlocal_util.h26 std::string localaddr; member
Dh2_local_ipv4.cc35 ->localaddr = grpc_core::JoinHostPort("127.0.0.1", port); in chttp2_create_fixture_fullstack_ipv4()
/third_party/curl/tests/server/
Dmqttd.c867 srvr_sockaddr_union_t localaddr; in sockdaemon() local
871 la_size = sizeof(localaddr.sa4); in sockdaemon()
874 la_size = sizeof(localaddr.sa6); in sockdaemon()
876 memset(&localaddr.sa, 0, (size_t)la_size); in sockdaemon()
877 if(getsockname(sock, &localaddr.sa, &la_size) < 0) { in sockdaemon()
884 switch(localaddr.sa.sa_family) { in sockdaemon()
886 *listenport = ntohs(localaddr.sa4.sin_port); in sockdaemon()
890 *listenport = ntohs(localaddr.sa6.sin6_port); in sockdaemon()
Dsocksd.c826 srvr_sockaddr_union_t localaddr; in sockdaemon() local
830 la_size = sizeof(localaddr.sa4); in sockdaemon()
833 la_size = sizeof(localaddr.sa6); in sockdaemon()
835 memset(&localaddr.sa, 0, (size_t)la_size); in sockdaemon()
836 if(getsockname(sock, &localaddr.sa, &la_size) < 0) { in sockdaemon()
843 switch(localaddr.sa.sa_family) { in sockdaemon()
845 *listenport = ntohs(localaddr.sa4.sin_port); in sockdaemon()
849 *listenport = ntohs(localaddr.sa6.sin6_port); in sockdaemon()
Drtspd.c1195 srvr_sockaddr_union_t localaddr; in main() local
1199 la_size = sizeof(localaddr.sa4); in main()
1202 la_size = sizeof(localaddr.sa6); in main()
1204 memset(&localaddr.sa, 0, (size_t)la_size); in main()
1205 if(getsockname(sock, &localaddr.sa, &la_size) < 0) { in main()
1212 switch(localaddr.sa.sa_family) { in main()
1214 port = ntohs(localaddr.sa4.sin_port); in main()
1218 port = ntohs(localaddr.sa6.sin6_port); in main()
Dtftpd.c699 srvr_sockaddr_union_t localaddr; in main() local
703 la_size = sizeof(localaddr.sa4); in main()
706 la_size = sizeof(localaddr.sa6); in main()
708 memset(&localaddr.sa, 0, (size_t)la_size); in main()
709 if(getsockname(sock, &localaddr.sa, &la_size) < 0) { in main()
716 switch(localaddr.sa.sa_family) { in main()
718 port = ntohs(localaddr.sa4.sin_port); in main()
722 port = ntohs(localaddr.sa6.sin6_port); in main()
Dsockfilt.c1257 srvr_sockaddr_union_t localaddr; in sockdaemon() local
1261 la_size = sizeof(localaddr.sa4); in sockdaemon()
1264 la_size = sizeof(localaddr.sa6); in sockdaemon()
1266 memset(&localaddr.sa, 0, (size_t)la_size); in sockdaemon()
1267 if(getsockname(sock, &localaddr.sa, &la_size) < 0) { in sockdaemon()
1274 switch(localaddr.sa.sa_family) { in sockdaemon()
1276 *listenport = ntohs(localaddr.sa4.sin_port); in sockdaemon()
1280 *listenport = ntohs(localaddr.sa6.sin6_port); in sockdaemon()
/third_party/python/Doc/library/
Dsmtpd.rst36 .. class:: SMTPServer(localaddr, remoteaddr, data_size_limit=33554432,\
40 *localaddr*. It will treat *remoteaddr* as an upstream SMTP relayer. Both
41 *localaddr* and *remoteaddr* should be a :ref:`(host, port) <host_port>`
112 *localaddr* and *remoteaddr* may now contain IPv6 addresses.
127 .. class:: DebuggingServer(localaddr, remoteaddr)
137 .. class:: PureProxy(localaddr, remoteaddr)
148 .. class:: MailmanProxy(localaddr, remoteaddr)
/third_party/grpc/test/core/end2end/
Dh2_ssl_cert_test.cc51 std::string localaddr; member
61 ffd->localaddr = grpc_core::JoinHostPort("localhost", port); in chttp2_create_fixture_secure_fullstack()
82 f->client = grpc_secure_channel_create(creds, ffd->localaddr.c_str(), in chttp2_init_client_secure_fullstack()
99 f->server, ffd->localaddr.c_str(), server_creds)); in chttp2_init_server_secure_fullstack()
/third_party/grpc/src/objective-c/tests/CronetTests/
DCoreCronetEnd2EndTests.mm55 std::string localaddr; field
65 ffd->localaddr = grpc_core::JoinHostPort("127.0.0.1", port);
86 grpc_cronet_secure_channel_create(cronetEngine, ffd->localaddr.c_str(), client_args, NULL);
99 GPR_ASSERT(grpc_server_add_secure_http2_port(f->server, ffd->localaddr.c_str(), server_creds));

12