From: phk Date: Mon, 21 Aug 2006 11:11:02 +0000 (+0000) Subject: Add file X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73d28cdba1a77a2573552871b8ec45225b95e357;p=varnish Add file git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@864 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_acceptor.h b/varnish-cache/bin/varnishd/cache_acceptor.h new file mode 100644 index 00000000..c78ab2c7 --- /dev/null +++ b/varnish-cache/bin/varnishd/cache_acceptor.h @@ -0,0 +1,31 @@ +/* + * $Id$ + */ + +struct sess; + +typedef void acceptor_init_f(void); +typedef void acceptor_recycle_f(struct sess *); + +struct acceptor { + const char *name; + acceptor_init_f *init; + acceptor_recycle_f *recycle; +}; + +#if defined(HAVE_EPOLL_CTL) +extern struct acceptor acceptor_epoll; +#endif + +#if defined(HAVE_KQUEUE) +extern struct acceptor acceptor_kqueue; +#endif + +#if defined(HAVE_POLL) +extern struct acceptor acceptor_poll; +#endif + +/* vca_acceptor.c */ +struct sess *vca_accept_sess(int fd); +void vca_handover(struct sess *sp, int bad); +