added connection oriented statefull session handling to the server stack
[OpenSRF.git] / src / libstack / osrf_prefork.h
index c1c35de..0e14259 100644 (file)
@@ -7,8 +7,9 @@
 #include <sys/select.h>
 #include <sys/wait.h>
 
-#include "utils.h"
+#include "opensrf/utils.h"
 #include "opensrf/transport_message.h"
+#include "opensrf/transport_client.h"
 #include "osrf_stack.h"
 #include "osrf_settings.h"
 #include "osrfConfig.h"
@@ -36,6 +37,7 @@ struct prefork_simple_struct {
        int data_to_child;
        int data_to_parent;
        int current_num_children;
+       int keepalive; /* keepalive time for stateful sessions */
        char* appname;
        struct prefork_child_struct* first_child;
        transport_client* connection;
@@ -52,8 +54,8 @@ struct prefork_child_struct {
        int available;
        int max_requests;
        char* appname;
+       int keepalive;
        struct prefork_child_struct* next;
-       transport_client* connection;
 };
 
 typedef struct prefork_child_struct prefork_child;
@@ -88,3 +90,6 @@ int prefork_free( prefork_simple* );
 int prefork_child_free( prefork_child* );
 
 
+void osrf_prefork_register_routers( char* appname );
+
+