Home
last modified time | relevance | path

Searched refs:sa4 (Results 1 – 9 of 9) sorted by relevance

/curl/tests/server/
H A Dsocksd.c291 memset(&me.sa4, 0, sizeof(me.sa4)); in socksconnect()
292 me.sa4.sin_family = AF_INET; in socksconnect()
293 me.sa4.sin_port = htons(connectport); in socksconnect()
294 me.sa4.sin_addr.s_addr = INADDR_ANY; in socksconnect()
297 rc = connect(sock, &me.sa, sizeof(me.sa4)); in socksconnect()
859 memset(&listener.sa4, 0, sizeof(listener.sa4)); in sockdaemon()
860 listener.sa4.sin_family = AF_INET; in sockdaemon()
861 listener.sa4.sin_addr.s_addr = INADDR_ANY; in sockdaemon()
862 listener.sa4.sin_port = htons(*listenport); in sockdaemon()
908 la_size = sizeof(localaddr.sa4); in sockdaemon()
[all …]
H A Dserver_sockaddr.h34 struct sockaddr_in sa4; member
H A Dsockfilt.c1266 memset(&listener.sa4, 0, sizeof(listener.sa4)); in sockdaemon()
1267 listener.sa4.sin_family = AF_INET; in sockdaemon()
1268 listener.sa4.sin_addr.s_addr = INADDR_ANY; in sockdaemon()
1269 listener.sa4.sin_port = htons(*listenport); in sockdaemon()
1297 la_size = sizeof(localaddr.sa4); in sockdaemon()
1312 *listenport = ntohs(localaddr.sa4.sin_port); in sockdaemon()
1502 memset(&me.sa4, 0, sizeof(me.sa4)); in main()
1503 me.sa4.sin_family = AF_INET; in main()
1504 me.sa4.sin_port = htons(connectport); in main()
1505 me.sa4.sin_addr.s_addr = INADDR_ANY; in main()
[all …]
H A Dtftpd.c537 fromaddrlen = sizeof(fromaddr.sa4); in synchnet()
682 memset(&me.sa4, 0, sizeof(me.sa4)); in main()
683 me.sa4.sin_family = AF_INET; in main()
684 me.sa4.sin_addr.s_addr = INADDR_ANY; in main()
685 me.sa4.sin_port = htons(port); in main()
686 rc = bind(sock, &me.sa, sizeof(me.sa4)); in main()
713 la_size = sizeof(localaddr.sa4); in main()
728 port = ntohs(localaddr.sa4.sin_port); in main()
770 fromlen = sizeof(from.sa4); in main()
791 from.sa4.sin_family = AF_INET; in main()
[all …]
H A Dmqttd.c844 memset(&listener.sa4, 0, sizeof(listener.sa4)); in sockdaemon()
845 listener.sa4.sin_family = AF_INET; in sockdaemon()
846 listener.sa4.sin_addr.s_addr = INADDR_ANY; in sockdaemon()
847 listener.sa4.sin_port = htons(*listenport); in sockdaemon()
848 rc = bind(sock, &listener.sa, sizeof(listener.sa4)); in sockdaemon()
875 la_size = sizeof(localaddr.sa4); in sockdaemon()
890 *listenport = ntohs(localaddr.sa4.sin_port); in sockdaemon()
H A Drtspd.c1184 memset(&me.sa4, 0, sizeof(me.sa4)); in main()
1185 me.sa4.sin_family = AF_INET; in main()
1186 me.sa4.sin_addr.s_addr = INADDR_ANY; in main()
1187 me.sa4.sin_port = htons(port); in main()
1188 rc = bind(sock, &me.sa, sizeof(me.sa4)); in main()
1214 la_size = sizeof(localaddr.sa4); in main()
1229 port = ntohs(localaddr.sa4.sin_port); in main()
H A Dsws.c1337 memset(&serveraddr.sa4, 0, sizeof(serveraddr.sa4)); in connect_to()
1338 serveraddr.sa4.sin_family = AF_INET; in connect_to()
1339 serveraddr.sa4.sin_port = htons(port); in connect_to()
1346 rc = connect(serverfd, &serveraddr.sa, sizeof(serveraddr.sa4)); in connect_to()
2207 memset(&me.sa4, 0, sizeof(me.sa4)); in main()
2208 me.sa4.sin_family = AF_INET; in main()
2209 me.sa4.sin_addr.s_addr = INADDR_ANY; in main()
2210 me.sa4.sin_port = htons(port); in main()
2211 rc = bind(sock, &me.sa, sizeof(me.sa4)); in main()
2248 la_size = sizeof(localaddr.sa4); in main()
[all …]
/curl/lib/
H A Dhostip.c142 const struct sockaddr_in *sa4 = (const void *)ai->ai_addr; in Curl_printable_address() local
143 const struct in_addr *ipaddr4 = &sa4->sin_addr; in Curl_printable_address()
H A Dftp.c861 struct sockaddr_in * const sa4 = (void *)sa; in ftp_state_use_port() local
995 r = Curl_inet_ntop(sa->sa_family, &sa4->sin_addr, hbuf, sizeof(hbuf)); in ftp_state_use_port()
1046 sa4->sin_port = htons(port); in ftp_state_use_port()
1136 port = ntohs(sa4->sin_port); in ftp_state_use_port()

Completed in 40 milliseconds