summaryrefslogtreecommitdiffhomepage
path: root/src/child.h
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2002-05-26 18:45:26 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2002-05-26 18:45:26 +0000
commitb3e657a00e70fbf328792ab1dd2da9724ffa9b98 (patch)
treea11ea61f7fd38db21bcc8956daaa4a43d7d44e07 /src/child.h
parent391a408eee5351b4c4714f9edfe358d924ea80bc (diff)
Changed from using a threading model to a standard pre-forked model.
Therefore the thread.c file has been removed and this file replaces it. These files are really just the thread.c and thread.h files with all the threading stuff replaced with fork() code. Most of the code is identical.
Diffstat (limited to 'src/child.h')
-rw-r--r--src/child.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/child.h b/src/child.h
new file mode 100644
index 0000000..2ae5b3d
--- /dev/null
+++ b/src/child.h
@@ -0,0 +1,37 @@
+/* $Id: child.h,v 1.1 2002-05-26 18:45:26 rjkaes Exp $
+ *
+ * See 'child.c' for more information.
+ *
+ * Copyright (C) 2002 Robert James Kaes (rjkaes@flarenet.com)
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; either version 2, or (at your option) any
+ * later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ */
+
+#ifndef TINYPROXY_CHILD_H
+#define TINYPROXY_CHILD_H
+
+typedef enum {
+ CHILD_MAXCLIENTS,
+ CHILD_MAXSPARESERVERS,
+ CHILD_MINSPARESERVERS,
+ CHILD_STARTSERVERS,
+ CHILD_MAXREQUESTSPERCHILD
+} child_config_t;
+
+extern short int child_pool_create(void);
+extern int child_listening_sock(uint16_t port);
+extern void child_close_sock(void);
+extern void child_main_loop(void);
+extern void child_kill_children(void);
+
+extern short int child_configure(child_config_t type, unsigned int val);
+
+#endif