Lines Matching refs:bound
3494 struct evhttp_bound_socket *bound = in evhttp_bind_socket() local
3496 if (bound == NULL) in evhttp_bind_socket()
3505 struct evhttp_bound_socket *bound; in evhttp_bind_socket_with_handle() local
3516 bound = evhttp_accept_socket_with_handle(http, fd); in evhttp_bind_socket_with_handle()
3518 if (bound != NULL) { in evhttp_bind_socket_with_handle()
3521 return (bound); in evhttp_bind_socket_with_handle()
3530 struct evhttp_bound_socket *bound = in evhttp_accept_socket() local
3532 if (bound == NULL) in evhttp_accept_socket()
3542 struct evhttp_bound_socket *bound; in evhttp_foreach_bound_socket() local
3544 TAILQ_FOREACH(bound, &http->sockets, next) in evhttp_foreach_bound_socket()
3545 function(bound, argument); in evhttp_foreach_bound_socket()
3551 struct evhttp_bound_socket *bound; in evhttp_accept_socket_with_handle() local
3563 bound = evhttp_bind_listener(http, listener); in evhttp_accept_socket_with_handle()
3564 if (!bound) { in evhttp_accept_socket_with_handle()
3568 return (bound); in evhttp_accept_socket_with_handle()
3574 struct evhttp_bound_socket *bound; in evhttp_bind_listener() local
3576 bound = mm_malloc(sizeof(struct evhttp_bound_socket)); in evhttp_bind_listener()
3577 if (bound == NULL) in evhttp_bind_listener()
3580 bound->listener = listener; in evhttp_bind_listener()
3581 TAILQ_INSERT_TAIL(&http->sockets, bound, next); in evhttp_bind_listener()
3584 return bound; in evhttp_bind_listener()
3588 evhttp_bound_socket_get_fd(struct evhttp_bound_socket *bound) in evhttp_bound_socket_get_fd() argument
3590 return evconnlistener_get_fd(bound->listener); in evhttp_bound_socket_get_fd()
3594 evhttp_bound_socket_get_listener(struct evhttp_bound_socket *bound) in evhttp_bound_socket_get_listener() argument
3596 return bound->listener; in evhttp_bound_socket_get_listener()
3600 evhttp_del_accept_socket(struct evhttp *http, struct evhttp_bound_socket *bound) in evhttp_del_accept_socket() argument
3602 TAILQ_REMOVE(&http->sockets, bound, next); in evhttp_del_accept_socket()
3603 evconnlistener_free(bound->listener); in evhttp_del_accept_socket()
3604 mm_free(bound); in evhttp_del_accept_socket()
3675 struct evhttp_bound_socket *bound; in evhttp_free() local
3680 while ((bound = TAILQ_FIRST(&http->sockets)) != NULL) { in evhttp_free()
3681 TAILQ_REMOVE(&http->sockets, bound, next); in evhttp_free()
3683 evconnlistener_free(bound->listener); in evhttp_free()
3685 mm_free(bound); in evhttp_free()