Lines Matching refs:bound
3078 struct evhttp_bound_socket *bound =
3080 if (bound == NULL)
3089 struct evhttp_bound_socket *bound;
3100 bound = evhttp_accept_socket_with_handle(http, fd);
3102 if (bound != NULL) {
3105 return (bound);
3114 struct evhttp_bound_socket *bound =
3116 if (bound == NULL)
3125 struct evhttp_bound_socket *bound;
3137 bound = evhttp_bind_listener(http, listener);
3138 if (!bound) {
3142 return (bound);
3148 struct evhttp_bound_socket *bound;
3150 bound = mm_malloc(sizeof(struct evhttp_bound_socket));
3151 if (bound == NULL)
3154 bound->listener = listener;
3155 TAILQ_INSERT_TAIL(&http->sockets, bound, next);
3158 return bound;
3162 evhttp_bound_socket_get_fd(struct evhttp_bound_socket *bound)
3164 return evconnlistener_get_fd(bound->listener);
3168 evhttp_bound_socket_get_listener(struct evhttp_bound_socket *bound)
3170 return bound->listener;
3174 evhttp_del_accept_socket(struct evhttp *http, struct evhttp_bound_socket *bound)
3176 TAILQ_REMOVE(&http->sockets, bound, next);
3177 evconnlistener_free(bound->listener);
3178 mm_free(bound);
3248 struct evhttp_bound_socket *bound;
3253 while ((bound = TAILQ_FIRST(&http->sockets)) != NULL) {
3254 TAILQ_REMOVE(&http->sockets, bound, next);
3256 evconnlistener_free(bound->listener);
3258 mm_free(bound);
3294 /* a vhost can only be a vhost once and should not have bound sockets */