Lines Matching refs:port
1296 ev_uint16_t port) in evhttp_connection_set_local_port() argument
1299 evcon->bind_port = port; in evhttp_connection_set_local_port()
1492 __func__, evcon->address, evcon->port, in evhttp_error_cb()
1604 __func__, evcon->address, evcon->port, in evhttp_connection_cb()
1612 __func__, evcon->address, evcon->port, in evhttp_connection_cb()
1620 __func__, evcon->address, evcon->port, in evhttp_connection_cb()
2373 evhttp_connection_new(const char *address, ev_uint16_t port) in evhttp_connection_new() argument
2375 return (evhttp_connection_base_new(NULL, NULL, address, port)); in evhttp_connection_new()
2380 const char *address, ev_uint16_t port) in evhttp_connection_base_bufferevent_new() argument
2384 event_debug(("Attempting connection to %s:%d\n", address, port)); in evhttp_connection_base_bufferevent_new()
2392 evcon->port = port; in evhttp_connection_base_bufferevent_new()
2456 const char *address, ev_uint16_t port) in evhttp_connection_base_new() argument
2458 return evhttp_connection_base_bufferevent_new(base, dnsbase, NULL, address, port); in evhttp_connection_base_new()
2551 char **address, ev_uint16_t *port) in evhttp_connection_get_peer() argument
2554 *port = evcon->port; in evhttp_connection_get_peer()
2623 evcon->dns_base, evcon->ai_family, address, evcon->port); in evhttp_connection_connect_()
3549 evhttp_bind_socket(struct evhttp *http, const char *address, ev_uint16_t port) in evhttp_bind_socket() argument
3552 evhttp_bind_socket_with_handle(http, address, port); in evhttp_bind_socket()
3559 evhttp_bind_socket_with_handle(struct evhttp *http, const char *address, ev_uint16_t port) in evhttp_bind_socket_with_handle() argument
3565 if ((fd = bind_socket(address, port, 1 /*reuse*/)) == -1) in evhttp_bind_socket_with_handle()
3580 port)); in evhttp_bind_socket_with_handle()
3715 evhttp_start(const char *address, ev_uint16_t port) in evhttp_start() argument
3722 if (evhttp_bind_socket(http, address, port) == -1) { in evhttp_start()
4298 req->remote_port = evcon->port; in evhttp_associate_new_request_with_connection()
4430 make_addrinfo(const char *address, ev_uint16_t port) in make_addrinfo() argument
4444 evutil_snprintf(strport, sizeof(strport), "%d", port); in make_addrinfo()
4459 bind_socket(const char *address, ev_uint16_t port, int reuse) in bind_socket() argument
4465 if (address == NULL && port == 0) in bind_socket()
4468 aitop = make_addrinfo(address, port); in bind_socket()
4485 int port; /* port, or zero */ member
4496 uri->port = -1; in evhttp_uri_new()
4629 char *cp, *port; in parse_authority() local
4656 for (port=eos-1; port >= cp && EVUTIL_ISDIGIT_(*port); --port) in parse_authority()
4658 if (port >= cp && *port == ':') { in parse_authority()
4659 if (port+1 == eos) /* Leave port unspecified; the RFC allows a in parse_authority()
4661 uri->port = -1; in parse_authority()
4662 else if ((uri->port = parse_port(port+1, eos))<0) in parse_authority()
4664 eos = port; in parse_authority()
4782 uri->port = -1; in evhttp_uri_parse_with_flags()
4908 uri->port = -1; in evhttp_uri_parse_authority()
4972 if (uri->port >= 0) in evhttp_uri_join()
4973 evbuffer_add_printf(tmp,":%d", uri->port); in evhttp_uri_join()
5029 return uri->port; in evhttp_uri_get_port()
5094 evhttp_uri_set_port(struct evhttp_uri *uri, int port) in evhttp_uri_set_port() argument
5096 if (port < -1) in evhttp_uri_set_port()
5098 uri->port = port; in evhttp_uri_set_port()