svn commit: trunk/busybox/networking

vda at busybox.net vda at busybox.net
Sun Jan 14 12:32:31 UTC 2007


Author: vda
Date: 2007-01-14 04:32:30 -0800 (Sun, 14 Jan 2007)
New Revision: 17299

Log:
I forgot "svn add" AGAIN! :(


Added:
   trunk/busybox/networking/isrv.h


Changeset:
Added: trunk/busybox/networking/isrv.h
===================================================================
--- trunk/busybox/networking/isrv.h	                        (rev 0)
+++ trunk/busybox/networking/isrv.h	2007-01-14 12:32:30 UTC (rev 17299)
@@ -0,0 +1,23 @@
+/* opaque structure */
+struct isrv_state_t;
+typedef struct isrv_state_t isrv_state_t;
+
+/* callbacks */
+void isrv_want_rd(isrv_state_t *state, int fd);
+void isrv_want_wr(isrv_state_t *state, int fd);
+void isrv_dont_want_rd(isrv_state_t *state, int fd);
+void isrv_dont_want_wr(isrv_state_t *state, int fd);
+int isrv_register_fd(isrv_state_t *state, int peer, int fd);
+void isrv_close_fd(isrv_state_t *state, int fd);
+int isrv_register_peer(isrv_state_t *state, void *param);
+
+/* driver */
+void isrv_run(
+	int listen_fd,
+	int (*new_peer)(isrv_state_t *state, int fd),
+	int (*do_rd)(int fd, void **),
+	int (*do_wr)(int fd, void **),
+	int (*do_timeout)(void **),
+	int timeout,
+	int linger_timeout
+);




More information about the busybox-cvs mailing list