Lines Matching refs:dst
22 struct sockaddr_in dst; member
61 inet_ntoa(c->dst.sin_addr), in http_client_got_response()
62 ntohs(c->dst.sin_port)); in http_client_got_response()
67 inet_ntoa(c->dst.sin_addr), in http_client_got_response()
68 ntohs(c->dst.sin_port)); in http_client_got_response()
93 inet_ntoa(c->dst.sin_addr), ntohs(c->dst.sin_port), in http_client_tx_ready()
116 inet_ntoa(c->dst.sin_addr), ntohs(c->dst.sin_port)); in http_client_tx_ready()
130 struct http_client * http_client_addr(struct sockaddr_in *dst, in http_client_addr() argument
143 c->dst = *dst; in http_client_addr()
158 if (connect(c->sd, (struct sockaddr *) dst, sizeof(*dst))) { in http_client_addr()
187 char * http_client_url_parse(const char *url, struct sockaddr_in *dst, in http_client_url_parse() argument
196 os_memset(dst, 0, sizeof(*dst)); in http_client_url_parse()
197 dst->sin_family = AF_INET; in http_client_url_parse()
211 if (inet_aton(addr, &dst->sin_addr) == 0) { in http_client_url_parse()
221 dst->sin_port = htons(atoi(port)); in http_client_url_parse()
223 dst->sin_port = htons(80); in http_client_url_parse()
243 struct sockaddr_in dst; in http_client_url() local
250 u = http_client_url_parse(url, &dst, &path); in http_client_url()
269 path, inet_ntoa(dst.sin_addr), in http_client_url()
270 ntohs(dst.sin_port)); in http_client_url()
274 c = http_client_addr(&dst, req, max_response, cb, cb_ctx); in http_client_url()