Home
last modified time | relevance | path

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

/curl/tests/server/
H A Dmqttd.c871 srvr_sockaddr_union_t localaddr; in sockdaemon() local
875 la_size = sizeof(localaddr.sa4); in sockdaemon()
878 la_size = sizeof(localaddr.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()
890 *listenport = ntohs(localaddr.sa4.sin_port); in sockdaemon()
894 *listenport = ntohs(localaddr.sa6.sin6_port); in sockdaemon()
H A Dsocksd.c902 srvr_sockaddr_union_t localaddr; in sockdaemon() local
905 la_size = sizeof(localaddr.sa6); in sockdaemon()
908 la_size = sizeof(localaddr.sa4); 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()
919 *listenport = ntohs(localaddr.sa4.sin_port); in sockdaemon()
923 *listenport = ntohs(localaddr.sa6.sin6_port); in sockdaemon()
H A Dtftpd.c709 srvr_sockaddr_union_t localaddr; in main() local
713 la_size = sizeof(localaddr.sa4); in main()
716 la_size = sizeof(localaddr.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()
728 port = ntohs(localaddr.sa4.sin_port); in main()
732 port = ntohs(localaddr.sa6.sin6_port); in main()
H A Drtspd.c1210 srvr_sockaddr_union_t localaddr; in main() local
1214 la_size = sizeof(localaddr.sa4); in main()
1217 la_size = sizeof(localaddr.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()
1229 port = ntohs(localaddr.sa4.sin_port); in main()
1233 port = ntohs(localaddr.sa6.sin6_port); in main()
H A Dsockfilt.c1293 srvr_sockaddr_union_t localaddr; in sockdaemon() local
1297 la_size = sizeof(localaddr.sa4); in sockdaemon()
1300 la_size = sizeof(localaddr.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()
1312 *listenport = ntohs(localaddr.sa4.sin_port); in sockdaemon()
1316 *listenport = ntohs(localaddr.sa6.sin6_port); in sockdaemon()
H A Dsws.c2244 srvr_sockaddr_union_t localaddr; in main() local
2248 la_size = sizeof(localaddr.sa4); in main()
2251 la_size = sizeof(localaddr.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()
2263 port = ntohs(localaddr.sa4.sin_port); in main()
2267 port = ntohs(localaddr.sa6.sin6_port); in main()
/curl/lib/
H A Dsetup-os400.h132 extern int Curl_os400_bind(int sd, struct sockaddr *localaddr, int addrlen);
/curl/packages/OS400/
H A Dos400sys.c883 Curl_os400_bind(int sd, struct sockaddr *localaddr, int addrlen) in Curl_os400_bind() argument
888 i = sockaddr2ebcdic(&laddr, localaddr, addrlen); in Curl_os400_bind()

Completed in 29 milliseconds