Lines Matching defs:dst
22 struct sockaddr_in dst;
61 inet_ntoa(c->dst.sin_addr),
62 ntohs(c->dst.sin_port));
67 inet_ntoa(c->dst.sin_addr),
68 ntohs(c->dst.sin_port));
91 inet_ntoa(c->dst.sin_addr), ntohs(c->dst.sin_port),
116 inet_ntoa(c->dst.sin_addr), ntohs(c->dst.sin_port));
130 struct http_client * http_client_addr(struct sockaddr_in *dst,
143 c->dst = *dst;
161 if (connect(c->sd, (struct sockaddr *) dst, sizeof(*dst))) {
193 char * http_client_url_parse(const char *url, struct sockaddr_in *dst,
202 os_memset(dst, 0, sizeof(*dst));
203 dst->sin_family = AF_INET;
217 if (inet_aton(addr, &dst->sin_addr) == 0) {
227 dst->sin_port = htons(atoi(port));
229 dst->sin_port = htons(80);
249 struct sockaddr_in dst;
256 u = http_client_url_parse(url, &dst, &path);
275 path, inet_ntoa(dst.sin_addr),
276 ntohs(dst.sin_port));
280 c = http_client_addr(&dst, req, max_response, cb, cb_ctx);