r864 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Mon Aug 21 13:11:02 CEST 2006


Author: phk
Date: 2006-08-21 13:11:02 +0200 (Mon, 21 Aug 2006)
New Revision: 864

Added:
   trunk/varnish-cache/bin/varnishd/cache_acceptor.h
Log:
Add file


Added: trunk/varnish-cache/bin/varnishd/cache_acceptor.h
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_acceptor.h	2006-08-21 11:05:08 UTC (rev 863)
+++ trunk/varnish-cache/bin/varnishd/cache_acceptor.h	2006-08-21 11:11:02 UTC (rev 864)
@@ -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);
+




More information about the varnish-commit mailing list