/curl/tests/server/ |
H A D | server_sockaddr.h | 33 struct sockaddr sa; member
|
H A D | tftpd.c | 271 struct sigaction sa; in mysignal() local 272 memset(&sa, 0, sizeof(sa)); in mysignal() 273 sa.sa_handler = handler; in mysignal() 274 sigaction(sig, &sa, NULL); in mysignal() 543 &fromaddr.sa, &fromaddrlen); in synchnet() 686 rc = bind(sock, &me.sa, sizeof(me.sa4)); in main() 694 rc = bind(sock, &me.sa, sizeof(me.sa6)); in main() 718 memset(&localaddr.sa, 0, (size_t)la_size); in main() 719 if(getsockname(sock, &localaddr.sa, &la_size) < 0) { in main() 726 switch(localaddr.sa.sa_family) { in main() [all …]
|
H A D | util.c | 681 struct sigaction sa, oldsa; in set_signal() local 683 memset(&sa, 0, sizeof(sa)); in set_signal() 684 sa.sa_handler = handler; in set_signal() 685 sigemptyset(&sa.sa_mask); in set_signal() 686 sigaddset(&sa.sa_mask, signum); in set_signal() 687 sa.sa_flags = restartable ? SA_RESTART : 0; in set_signal() 689 if(sigaction(signum, &sa, &oldsa)) in set_signal()
|
H A D | socksd.c | 297 rc = connect(sock, &me.sa, sizeof(me.sa4)); in socksconnect() 863 rc = bind(sock, &listener.sa, sizeof(listener.sa4)); in sockdaemon() 871 rc = bind(sock, &listener.sa, sizeof(listener.sa6)); in sockdaemon() 909 memset(&localaddr.sa, 0, (size_t)la_size); in sockdaemon() 910 if(getsockname(sock, &localaddr.sa, &la_size) < 0) { in sockdaemon() 917 switch(localaddr.sa.sa_family) { in sockdaemon()
|
H A D | sockfilt.c | 1270 rc = bind(sock, &listener.sa, sizeof(listener.sa4)); in sockdaemon() 1278 rc = bind(sock, &listener.sa, sizeof(listener.sa6)); in sockdaemon() 1302 memset(&localaddr.sa, 0, (size_t)la_size); in sockdaemon() 1303 if(getsockname(sock, &localaddr.sa, &la_size) < 0) { in sockdaemon() 1310 switch(localaddr.sa.sa_family) { in sockdaemon() 1510 rc = connect(sock, &me.sa, sizeof(me.sa4)); in main() 1521 rc = connect(sock, &me.sa, sizeof(me.sa6)); in main()
|
H A D | mqttd.c | 848 rc = bind(sock, &listener.sa, sizeof(listener.sa4)); in sockdaemon() 856 rc = bind(sock, &listener.sa, sizeof(listener.sa6)); in sockdaemon() 880 memset(&localaddr.sa, 0, (size_t)la_size); in sockdaemon() 881 if(getsockname(sock, &localaddr.sa, &la_size) < 0) { in sockdaemon() 888 switch(localaddr.sa.sa_family) { in sockdaemon()
|
H A D | rtspd.c | 1188 rc = bind(sock, &me.sa, sizeof(me.sa4)); in main() 1196 rc = bind(sock, &me.sa, sizeof(me.sa6)); in main() 1219 memset(&localaddr.sa, 0, (size_t)la_size); in main() 1220 if(getsockname(sock, &localaddr.sa, &la_size) < 0) { in main() 1227 switch(localaddr.sa.sa_family) { in main()
|
H A D | sws.c | 1346 rc = connect(serverfd, &serveraddr.sa, sizeof(serveraddr.sa4)); in connect_to() 1359 rc = connect(serverfd, &serveraddr.sa, sizeof(serveraddr.sa6)); in connect_to() 2211 rc = bind(sock, &me.sa, sizeof(me.sa4)); in main() 2219 rc = bind(sock, &me.sa, sizeof(me.sa6)); in main() 2253 memset(&localaddr.sa, 0, (size_t)la_size); in main() 2254 if(getsockname(sock, &localaddr.sa, &la_size) < 0) { in main() 2261 switch(localaddr.sa.sa_family) { in main()
|
/curl/lib/ |
H A D | sockaddr.h | 31 struct sockaddr sa; member
|
H A D | if2ip.c | 67 unsigned int Curl_ipv6_scope(const struct sockaddr *sa) in Curl_ipv6_scope() argument 69 if(sa->sa_family == AF_INET6) { in Curl_ipv6_scope() 70 const struct sockaddr_in6 * sa6 = (const struct sockaddr_in6 *)(void *) sa; in Curl_ipv6_scope()
|
H A D | if2ip.h | 36 unsigned int Curl_ipv6_scope(const struct sockaddr *sa);
|
H A D | connect.h | 72 bool Curl_addr2string(struct sockaddr *sa, curl_socklen_t salen,
|
H A D | hostip.c | 572 struct sockaddr_in sa; in get_localhost() local 577 memset(&sa, 0, sizeof(sa)); in get_localhost() 578 sa.sin_family = AF_INET; in get_localhost() 579 sa.sin_port = htons(port16); in get_localhost() 582 memcpy(&sa.sin_addr, &ipv4, sizeof(ipv4)); in get_localhost() 593 memcpy(ca->ai_addr, &sa, ss_size); in get_localhost()
|
H A D | setup-os400.h | 67 extern int Curl_getnameinfo_a(const struct sockaddr *sa,
|
H A D | connect.c | 235 bool Curl_addr2string(struct sockaddr *sa, curl_socklen_t salen, in Curl_addr2string() argument 248 switch(sa->sa_family) { in Curl_addr2string() 250 si = (struct sockaddr_in *)(void *) sa; in Curl_addr2string() 251 if(Curl_inet_ntop(sa->sa_family, &si->sin_addr, in Curl_addr2string() 260 si6 = (struct sockaddr_in6 *)(void *) sa; in Curl_addr2string() 261 if(Curl_inet_ntop(sa->sa_family, &si6->sin6_addr, in Curl_addr2string() 272 su = (struct sockaddr_un*)sa; in Curl_addr2string()
|
H A D | ftp.c | 860 struct sockaddr *sa = (struct sockaddr *)&ss; in ftp_state_use_port() local 861 struct sockaddr_in * const sa4 = (void *)sa; in ftp_state_use_port() 863 struct sockaddr_in6 * const sa6 = (void *)sa; in ftp_state_use_port() 983 if(getsockname(conn->sock[FIRSTSOCKET], sa, &sslen)) { in ftp_state_use_port() 988 switch(sa->sa_family) { in ftp_state_use_port() 1041 memcpy(sa, ai->ai_addr, ai->ai_addrlen); in ftp_state_use_port() 1045 if(sa->sa_family == AF_INET) in ftp_state_use_port() 1052 if(bind(portsock, sa, sslen) ) { in ftp_state_use_port() 1093 if(getsockname(portsock, sa, &sslen)) { in ftp_state_use_port() 1130 if((PORT == fcmd) && sa->sa_family != AF_INET) in ftp_state_use_port() [all …]
|
H A D | cf-socket.c | 571 struct Curl_sockaddr_storage sa; in bindlocal() local 572 struct sockaddr *sock = (struct sockaddr *)&sa; /* bind to this address */ in bindlocal() 574 struct sockaddr_in *si4 = (struct sockaddr_in *)&sa; in bindlocal() 576 struct sockaddr_in6 *si6 = (struct sockaddr_in6 *)&sa; in bindlocal() 606 memset(&sa, 0, sizeof(struct Curl_sockaddr_storage)); in bindlocal()
|
/curl/scripts/ |
H A D | cd2cd | 65 my (@sa) = @_; 69 for my $s (sort @sa) {
|
H A D | cd2nroff | 87 my (@sa) = @_; 91 for my $s (sort @sa) {
|
/curl/tests/data/ |
H A D | test1026 | 36 %PERL -e 'open(IN,$ARGV[0]); my $lines=grep(/(curl\s*-\s*transfer\sa\s*URL)|(AUTHORS)/, <IN>); exit…
|
/curl/packages/OS400/ |
H A D | os400sys.c | 253 Curl_getnameinfo_a(const struct sockaddr *sa, socklen_t salen, in Curl_getnameinfo_a() argument 276 status = getnameinfo(sa, salen, enodename, nodenamelen, in Curl_getnameinfo_a()
|
/curl/docs/ |
H A D | THANKS-filter | 55 s/Petr Písař/Petr Pisar/
|