GENERIC_SERVER  0.0.0.9
A light-weight, cross-platform, pluggable, extensible and secure framework for deploying C++ plug-ins.
 All Classes Files Functions Variables Typedefs Pages
Classes | Macros | Typedefs
generic_server.h File Reference

Singleton class to manage framework state and provide utility functions. This class stores master Vector, where all plug-ins are stored. It provides mechanisms to access all loaded plug-ins, loads and unloads plug-ins and provides TCP socket and TLS functionality to plug-ins. More...

#include <map>
#include <vector>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <pthread.h>
#include "sslserver.h"

Go to the source code of this file.

Classes

struct  thread_info
 OS agnostic thread handle. More...
 
class  generic_server
 This is a singleton class and provides framework functionality. More...
 

Macros

#define NO_LOG   0
 
#define LOG_LOW   1
 
#define LOG_MEDIUM   2
 
#define LOG_HI   3
 
#define MAX_THREADS   100
 
#define PLUGIN_NAME   0
 
#define PLUGIN_TYPE   1
 
#define PORT   2
 
#define PLUGIN_NUMBER   3
 
#define SHARED_LIB_PATH   4
 
#define TLS_FLAG   5
 
#define PLUGIN_CONF   6
 
#define INIT   1
 
#define RELOAD   2
 
#define THREAD_FREE   0
 
#define THREAD_COMPLETED   2
 
#define THREAD_ALLOCATED   1
 
#define MAX_SZ   10000
 
#define MIN_REQUEST_NO   0
 
#define MAX_REQUEST_NO   100
 

Typedefs

typedef struct thread_info THREAD_INFO
 OS agnostic thread handle.
 
typedef GENERIC_PLUGIN *(* create_fp )()
 Every plug-in should have a function with following prototype. This is the factory method: 'create_instance()' within shared library.
 

Detailed Description

Singleton class to manage framework state and provide utility functions. This class stores master Vector, where all plug-ins are stored. It provides mechanisms to access all loaded plug-ins, loads and unloads plug-ins and provides TCP socket and TLS functionality to plug-ins.

Author
Suraj Vijayan
Date
: 2011/12/27 14:16:20

Contact: suraj.nosp@m.@bro.nosp@m.adcom.nosp@m..com

Definition in file generic_server.h.