Home | History | Annotate | Download | only in libevent

Lines Matching refs:address

199 static int socket_connect(int fd, const char *address, unsigned short port);
1016 if (evcon->address != NULL)
1017 free(evcon->address);
1030 const char *address)
1035 if ((evcon->bind_address = strdup(address)) == NULL)
1142 __func__, evcon->address, evcon->port, evcon->fd));
1150 __func__, evcon->address, evcon->port, evcon->fd));
1156 __func__, evcon->address, evcon->port, evcon->fd,
1163 __func__, evcon->address, evcon->port, evcon->fd));
1677 evhttp_connection_new(const char *address, unsigned short port)
1681 event_debug(("Attempting connection to %s:%d\n", address, port));
1694 if ((evcon->address = strdup(address)) == NULL) {
1752 char **address, u_short *port)
1754 *address = evcon->address;
1777 if (socket_connect(evcon->fd, evcon->address, evcon->port) == -1) {
2252 evhttp_bind_socket(struct evhttp *http, const char *address, u_short port)
2257 if ((fd = bind_socket(address, port, 1 /*reuse*/)) == -1)
2334 * Start a web server on the specified address and port.
2338 evhttp_start(const char *address, u_short port)
2342 if (evhttp_bind_socket(http, address, port) == -1) {
2582 if ((req->remote_host = strdup(evcon->address)) == NULL)
2623 addr_from_name(char *address)
2633 if ((ai_result = getaddrinfo(address, NULL, &ai, &aitop)) != 0) {
2726 address, u_short port)
2740 if ((ai_result = getaddrinfo(address, strport, &ai, &aitop)) != 0) {
2749 static struct addrinfo ai[2]; /* We will be returning the address of some of this memory so it has to last even after this call. */
2752 if (fake_getaddrinfo(address, &ai[cur]) < 0) {
2764 bind_socket(const char *address, u_short port, int reuse)
2770 if (address == NULL && port == 0)
2773 aitop = make_addrinfo(address, port);
2790 socket_connect(int fd, const char *address, unsigned short port)
2792 struct addrinfo *ai = make_addrinfo(address, port);
2797 __func__, address, port));