Lines Matching defs:addr

37 	const struct http_client_peer_addr *addr)
44 if (http_client_peer_addr_cmp(&queue->addr, addr) == 0)
53 const struct http_client_peer_addr *addr)
61 queue->addr = *addr;
63 switch (addr->type) {
66 i_strdup_printf("raw://%s:%u", hostname, addr->a.tcp.port);
67 queue->addr.a.tcp.https_name = NULL;
72 i_strdup_printf("https://%s:%u", hostname, addr->a.tcp.port);
73 queue->addr_name = i_strdup(addr->a.tcp.https_name);
74 queue->addr.a.tcp.https_name = queue->addr_name;
78 i_strdup_printf("http://%s:%u", hostname, addr->a.tcp.port);
79 queue->addr.a.tcp.https_name = NULL;
82 queue->name = i_strdup_printf("unix:%s", addr->a.un.path);
83 queue->addr_name = i_strdup(addr->a.un.path);
84 queue->addr.a.un.path = queue->addr_name;
106 const struct http_client_peer_addr *addr)
110 queue = http_client_queue_find(host, addr);
112 queue = http_client_queue_create(host, addr);
214 i_assert(queue->addr.type != HTTP_CLIENT_PEER_ADDR_UNIX);
237 i_assert(queue->addr.type != HTTP_CLIENT_PEER_ADDR_UNIX);
245 &queue->cur_peer->shared->addr.a.tcp.ip, &ip_idx)) {
258 const struct http_client_peer_addr *addr = &queue->addr;
262 i_assert(queue->addr.type != HTTP_CLIENT_PEER_ADDR_UNIX);
274 https_name = http_client_peer_addr_get_https_name(addr);
277 http_client_peer_addr2str(addr), (https_name == NULL ? "" :
293 struct http_client_peer_addr *addr = &queue->addr;
315 if (queue->addr.type != HTTP_CLIENT_PEER_ADDR_UNIX) {
318 queue->addr.a.tcp.ip = *ip;
319 ssl = http_client_peer_addr_get_https_name(addr);
330 (addr, &queue->cur_peer->shared->addr) == 0) {
337 http_client_peer_addr2str(addr), ssl, num_requests);
354 peer = http_client_peer_get(queue->client, addr);
357 "(%u requests pending)", http_client_peer_addr2str(addr), ssl,
373 (&(*peer_idx)->shared->addr, addr) != 0);
392 (&(*peer_idx)->shared->addr, addr) == 0) {
400 http_client_peer_addr2str(addr), ssl);
408 if (queue->addr.type != HTTP_CLIENT_PEER_ADDR_UNIX) {
449 const struct http_client_peer_addr *addr = &peer->shared->addr;
453 queue->addr.type != HTTP_CLIENT_PEER_ADDR_UNIX) {
454 /* we achieved at least one connection the the addr->ip */
456 &addr->a.tcp.ip, &queue->ips_connect_start_idx)) {
501 const struct http_client_peer_addr *addr = &peer->shared->addr;
502 const char *https_name = http_client_peer_addr_get_https_name(addr);
510 http_client_peer_addr2str(addr),
548 if (queue->addr.type == HTTP_CLIENT_PEER_ADDR_UNIX) {
967 const struct http_client_peer_addr *addr, bool no_urgent)
990 http_client_peer_addr2str(addr), http_client_request_label(req),