Home
last modified time | relevance | path

Searched refs:sockaddr (Results 1 – 25 of 28) sorted by relevance

12

/curl/lib/
H A Dif2ip.h36 unsigned int Curl_ipv6_scope(const struct sockaddr *sa);
66 struct sockaddr ifru_addr;
67 struct sockaddr ifru_broadaddr;
68 struct sockaddr ifru_netmask;
69 struct sockaddr ifru_hwaddr;
H A Dsetup-os400.h67 extern int Curl_getnameinfo_a(const struct sockaddr *sa,
131 extern int Curl_os400_connect(int sd, struct sockaddr *destaddr, int addrlen);
132 extern int Curl_os400_bind(int sd, struct sockaddr *localaddr, int addrlen);
134 const struct sockaddr *dstaddr, int addrlen);
136 struct sockaddr *fromaddr, int *addrlen);
137 extern int Curl_os400_getpeername(int sd, struct sockaddr *addr, int *addrlen);
138 extern int Curl_os400_getsockname(int sd, struct sockaddr *addr, int *addrlen);
H A Dsockaddr.h31 struct sockaddr sa;
H A Dtftp.c612 (struct sockaddr *)&state->remote_addr, in tftp_rx()
637 (struct sockaddr *)&state->remote_addr, in tftp_rx()
663 (struct sockaddr *)&state->remote_addr, in tftp_rx()
677 (struct sockaddr *)&state->remote_addr, in tftp_rx()
739 (struct sockaddr *)&state->remote_addr, in tftp_tx()
784 (struct sockaddr *)&state->remote_addr, in tftp_tx()
810 (struct sockaddr *)&state->remote_addr, in tftp_tx()
827 (struct sockaddr *)&state->remote_addr, in tftp_tx()
1012 ((struct sockaddr *)&state->local_addr)->sa_family = in tftp_connect()
1031 int rc = bind(state->sockfd, (struct sockaddr *)&state->local_addr, in tftp_connect()
[all …]
H A Dcurl_addrinfo.h59 struct sockaddr *ai_addr;
H A Dcf-socket.h51 struct sockaddr addr;
H A Dconnect.h72 bool Curl_addr2string(struct sockaddr *sa, curl_socklen_t salen,
H A Dmemdebug.c369 struct sockaddr *addr = (struct sockaddr *)saddr; in curl_dbg_accept()
H A Dif2ip.c67 unsigned int Curl_ipv6_scope(const struct sockaddr *sa) in Curl_ipv6_scope()
H A Dsocketpair.c136 struct sockaddr addr; in Curl_socketpair()
H A Dcf-socket.c580 struct sockaddr *sock = (struct sockaddr *)&sa; /* bind to this address */ in bindlocal()
1083 if(getsockname(ctx->sock, (struct sockaddr*) &ssloc, &slen)) { in set_local_ip()
1089 if(!Curl_addr2string((struct sockaddr*)&ssloc, slen, in set_local_ip()
2091 if(getpeername(ctx->sock, (struct sockaddr*) &ssrem, &plen)) { in cf_tcp_set_accepted_remote_ip()
2097 if(!Curl_addr2string((struct sockaddr*)&ssrem, plen, in cf_tcp_set_accepted_remote_ip()
2165 if(0 == getsockname(ctx->sock, (struct sockaddr *) &add, &size)) { in cf_tcp_accept_connect()
2167 s_accepted = accept(ctx->sock, (struct sockaddr *) &add, &size); in cf_tcp_accept_connect()
H A DMakefile.inc354 sockaddr.h \
H A Dkrb5.c222 (struct sockaddr *)&conn->local_addr, &l) < 0) in krb5_auth()
H A Dconnect.c235 bool Curl_addr2string(struct sockaddr *sa, curl_socklen_t salen, in Curl_addr2string()
/curl/packages/OS400/
H A Dos400sys.c253 Curl_getnameinfo_a(const struct sockaddr *sa, socklen_t salen, in Curl_getnameinfo_a()
793 const struct sockaddr *srcaddr, int srclen) in sockaddr2ebcdic()
802 if(!srcaddr || srclen < offsetof(struct sockaddr, sa_family) + in sockaddr2ebcdic()
827 sockaddr2ascii(struct sockaddr *dstaddr, int dstlen, in sockaddr2ascii()
869 Curl_os400_connect(int sd, struct sockaddr *destaddr, int addrlen) in Curl_os400_connect()
879 return connect(sd, (struct sockaddr *) &laddr, i); in Curl_os400_connect()
883 Curl_os400_bind(int sd, struct sockaddr *localaddr, int addrlen) in Curl_os400_bind()
893 return bind(sd, (struct sockaddr *) &laddr, i); in Curl_os400_bind()
898 const struct sockaddr *dstaddr, int addrlen) in Curl_os400_sendto()
913 struct sockaddr *fromaddr, int *addrlen) in Curl_os400_recvfrom()
[all …]
/curl/tests/server/
H A Dserver_sockaddr.h33 struct sockaddr sa;
H A Dutil.c854 rc = bind(sock, (struct sockaddr*)sau, sizeof(struct sockaddr_un)); in bind_unix_socket()
865 rc = connect(unixfd, (struct sockaddr*)sau, sizeof(struct sockaddr_un)); in bind_unix_socket()
899 rc = bind(sock, (struct sockaddr*)sau, sizeof(struct sockaddr_un)); in bind_unix_socket()
/curl/tests/libtest/
H A Dlib1960.c98 status = connect(client_fd, (struct sockaddr*)&serv_addr, sizeof(serv_addr)); in test()
/curl/docs/examples/
H A Dexternalsocket.c136 if(connect(sockfd, (struct sockaddr *) &servaddr, sizeof(servaddr)) == in main()
/curl/lib/vquic/
H A Dcurl_quiche.c625 recv_info.to = (struct sockaddr *)&ctx->q.local_addr; in recv_pkt()
627 recv_info.from = (struct sockaddr *)remote_addr; in recv_pkt()
1272 const struct Curl_sockaddr_ex *sockaddr; in cf_quiche_ctx_open() local
1320 Curl_cf_socket_peek(cf->next, data, &ctx->q.sockfd, &sockaddr, NULL); in cf_quiche_ctx_open()
1322 rv = getsockname(ctx->q.sockfd, (struct sockaddr *)&ctx->q.local_addr, in cf_quiche_ctx_open()
1329 (struct sockaddr *)&ctx->q.local_addr, in cf_quiche_ctx_open()
1331 &sockaddr->curl_sa_addr, in cf_quiche_ctx_open()
1332 sockaddr->addrlen, in cf_quiche_ctx_open()
H A Dcurl_ngtcp2.c1641 ngtcp2_addr_init(&path.local, (struct sockaddr *)&ctx->q.local_addr, in recv_pkt()
1643 ngtcp2_addr_init(&path.remote, (struct sockaddr *)remote_addr, in recv_pkt()
2260 const struct Curl_sockaddr_ex *sockaddr = NULL; in cf_connect_start() local
2293 Curl_cf_socket_peek(cf->next, data, &ctx->q.sockfd, &sockaddr, NULL); in cf_connect_start()
2294 if(!sockaddr) in cf_connect_start()
2297 rv = getsockname(ctx->q.sockfd, (struct sockaddr *)&ctx->q.local_addr, in cf_connect_start()
2303 (struct sockaddr *)&ctx->q.local_addr, in cf_connect_start()
2306 &sockaddr->curl_sa_addr, (socklen_t)sockaddr->addrlen); in cf_connect_start()
H A Dvquic.c564 (struct sockaddr *)&remote_addr, in recvfrom_packets()
/curl/docs/libcurl/opts/
H A DCURLOPT_OPENSOCKETFUNCTION.md34 struct sockaddr addr;
/curl/src/
H A Dtool_operate.c177 struct sockaddr addr; in get_address_family()
180 if(getsockname(sockfd, (struct sockaddr *)&addr, &addrlen) == 0) in get_address_family()
/curl/include/curl/
H A Dcurl.h427 struct sockaddr addr;

Completed in 195 milliseconds

12