tcp: improve builtin http server
[vpp.git] / src / vnet / session / application.h
index 6bcee9d..95a39c0 100644 (file)
@@ -37,7 +37,7 @@ typedef struct _stream_session_cb_vft
   int (*session_accept_callback) (stream_session_t * new_session);
 
   /* Connection request callback */
-  int (*session_connected_callback) (u32 app_index, u32 api_context,
+  int (*session_connected_callback) (u32 app_index, u32 opaque,
                                     stream_session_t * s, u8 code);
 
   /** Notify app that session is closing */
@@ -61,18 +61,6 @@ typedef struct _application
   /** Flags */
   u32 flags;
 
-  /* Stream server mode: accept or connect
-   * TODO REMOVE*/
-  u8 mode;
-
-  /** Index of the listen session or connect session
-   * TODO REMOVE*/
-  u32 session_index;
-
-  /** Session thread index for client connect sessions
-   * TODO REMOVE */
-  u32 thread_index;
-
   /*
    * Binary API interface to external app
    */
@@ -98,6 +86,7 @@ typedef struct _application
   uword *listeners_table;
 
   u32 first_segment_manager;
+  u8 first_segment_manager_in_use;
 
   /** Segment manager properties. Shared by all segment managers */
   segment_manager_properties_t sm_properties;
@@ -128,6 +117,7 @@ segment_manager_t *application_get_listen_segment_manager (application_t *
                                                           s);
 segment_manager_t *application_get_connect_segment_manager (application_t *
                                                            app);
+int application_is_proxy (application_t * app);
 
 #endif /* SRC_VNET_SESSION_APPLICATION_H_ */