Lines Matching defs:bound
3345 struct evhttp_bound_socket *bound =
3347 if (bound == NULL)
3356 struct evhttp_bound_socket *bound;
3367 bound = evhttp_accept_socket_with_handle(http, fd);
3369 if (bound != NULL) {
3372 return (bound);
3381 struct evhttp_bound_socket *bound =
3383 if (bound == NULL)
3393 struct evhttp_bound_socket *bound;
3395 TAILQ_FOREACH(bound, &http->sockets, next)
3396 function(bound, argument);
3402 struct evhttp_bound_socket *bound;
3414 bound = evhttp_bind_listener(http, listener);
3415 if (!bound) {
3419 return (bound);
3425 struct evhttp_bound_socket *bound;
3427 bound = mm_malloc(sizeof(struct evhttp_bound_socket));
3428 if (bound == NULL)
3431 bound->listener = listener;
3432 TAILQ_INSERT_TAIL(&http->sockets, bound, next);
3435 return bound;
3439 evhttp_bound_socket_get_fd(struct evhttp_bound_socket *bound)
3441 return evconnlistener_get_fd(bound->listener);
3445 evhttp_bound_socket_get_listener(struct evhttp_bound_socket *bound)
3447 return bound->listener;
3451 evhttp_del_accept_socket(struct evhttp *http, struct evhttp_bound_socket *bound)
3453 TAILQ_REMOVE(&http->sockets, bound, next);
3454 evconnlistener_free(bound->listener);
3455 mm_free(bound);
3526 struct evhttp_bound_socket *bound;
3531 while ((bound = TAILQ_FIRST(&http->sockets)) != NULL) {
3532 TAILQ_REMOVE(&http->sockets, bound, next);
3534 evconnlistener_free(bound->listener);
3536 mm_free(bound);
3572 /* a vhost can only be a vhost once and should not have bound sockets */