ffead.server.doc
Main Page
Classes
Files
File List
CHServer.h
1
/*
2
Copyright 2009-2012, Sumeet Chhetri
3
4
Licensed under the Apache License, Version 2.0 (the "License");
5
you may not use this file except in compliance with the License.
6
You may obtain a copy of the License at
7
8
http://www.apache.org/licenses/LICENSE-2.0
9
10
Unless required by applicable law or agreed to in writing, software
11
distributed under the License is distributed on an "AS IS" BASIS,
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
See the License for the specific language governing permissions and
14
limitations under the License.
15
*/
16
/*
17
* CHServer.h
18
*
19
* Created on: Aug 11, 2009
20
* Author: sumeet
21
*/
22
23
#ifndef CHSERVER_H_
24
#define CHSERVER_H_
25
#include "Cibernate.h"
26
#include <algorithm>
27
#include "Client.h"
28
#include "PropFileReader.h"
29
#include "AfcUtil.h"
30
#include "string"
31
#include "Controller.h"
32
33
#include "PropFileReader.h"
34
#include "TemplateEngine.h"
35
#include "DCPGenerator.h"
36
#include "Reflection.h"
37
#include <cstdlib>
38
#include <dlfcn.h>
39
40
#include "WsUtil.h"
41
#include "sstream"
42
43
#include "ClassInfo.h"
44
45
#include "View.h"
46
#include "XmlParser.h"
47
#include "TemplateHandler.h"
48
#include <stdio.h>
49
#include <stdlib.h>
50
#include <unistd.h>
51
#include <errno.h>
52
#include <sys/types.h>
53
#include <sys/socket.h>
54
#include <netinet/in.h>
55
#include <netdb.h>
56
#include <arpa/inet.h>
57
#include <sys/wait.h>
58
#include <signal.h>
59
#include "DynamicView.h"
60
#include "HttpRequest.h"
61
#include "ApplicationUtil.h"
62
#include <fcntl.h>
63
#include <sys/ioctl.h>
64
#include <sys/resource.h>
65
#include <sys/time.h>
66
#include <queue>
67
#include <sys/uio.h>
68
#include <sys/un.h>
69
#include "Cibernate.h"
70
#include "ComponentGen.h"
71
#include "ComponentHandler.h"
72
#include "MessageHandler.h"
73
#include "MethodInvoc.h"
74
#include "Reflector.h"
75
#include "AppContext.h"
76
77
#include "Logger.h"
78
#include "ThreadPool.h"
79
#include "FileAuthController.h"
80
#include <sys/stat.h>
81
#include "Timer.h"
82
#include "DateFormat.h"
83
#include "Filter.h"
84
#include "FormController.h"
85
#include "RestController.h"
86
#include "SecurityHandler.h"
87
#include "FilterHandler.h"
88
#include "AuthHandler.h"
89
#include "ControllerHandler.h"
90
#include "FormHandler.h"
91
#include "SoapHandler.h"
92
#include "ScriptHandler.h"
93
#include "FviewHandler.h"
94
#include "ExtHandler.h"
95
#include "ServiceTask.h"
96
#include "ConfigurationHandler.h"
97
#include "SSLHandler.h"
98
#include "ServiceTask.h"
99
#include "Thread.h"
100
#include "SelEpolKqEvPrt.h"
101
#ifdef WINDOWS
102
#include <direct.h>
103
#define pwd _getcwd
104
#else
105
#include <unistd.h>
106
#define pwd getcwd
107
#endif
108
109
110
111
112
//#define CA_LIST "root.pem"
113
#define HOST1 "localhost"
114
//#define RANDOM1 "random.pem"
115
#define PORT1 4433
116
#define BUFSIZZ 1024
117
//#define KEYFILE "server.pem"
118
//#define PASSWORD "password"
119
//#define DHFILE "dh1024.pem"
120
121
#define MAXEPOLLSIZE 100
122
#define BACKLOGM 500
123
124
typedef
bool (*FunPtr1) (
void
*);
125
typedef
ClassInfo
(*FunPtr) ();
126
typedef
void
* (*toVoidP) (string);
127
typedef
string (*DCPPtr) ();
128
typedef
void (*ReceiveTask1)(int);
129
130
using namespace
std;
131
/*class SharedData
132
{
133
private:
134
static SharedData* shared_instance;
135
void *dlib;
136
public:
137
static void init()
138
{
139
if(shared_instance==NULL)
140
{
141
shared_instance = new SharedData();
142
shared_instance->dlib = NULL;
143
logger << "\nInitialised Shared data" << endl;
144
}
145
}
146
static void setDLIB(void *dlib)
147
{
148
shared_instance->dlib = dlib;
149
}
150
static void* getDLIB()
151
{
152
return shared_instance->dlib;
153
}
154
static void deinit()
155
{
156
if(shared_instance->dlib!=NULL)dlclose(shared_instance->dlib);
157
shared_instance->~SharedData();
158
shared_instance = NULL;
159
logger << "\nclosed handle" << endl;
160
}
161
};*/
162
163
164
class
CHServer
{
165
public
:
166
CHServer
();
167
virtual
~
CHServer
();
168
};
169
170
#endif
/* CHSERVER_H_ */
include
CHServer.h
Generated on Sun Mar 10 2013 11:01:54 for ffead.server.doc by
1.8.3.1