My favorites | Sign in
Project Home Downloads Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef _ScgiServer_ScgiServer_h
#define _ScgiServer_ScgiServer_h

class ScgiServer {
public:
HttpQuery query;
HttpQuery post;

ScgiServer(int port = 7800);

void Process();
bool Accept();
void Run(int listenCount = 10);

dword ClientIP() { return clientIP; }
Socket ClientSock() { return clientSock; }

void Write(const String& text) { clientSock.Write(text); }

bool HasPostData() { return hasPostData; }

virtual void OnAccepted() {}
virtual void OnRequest() {}
virtual void OnClosed() {}

protected:
int port;
Socket serverSock, clientSock;
VectorMap<String,String> serverVars;
dword clientIP;
bool hasPostData;
};

#endif

Change log

r4565 by cxl on Feb 9, 2012   Diff
ScgiServer: Separated Run -> Accept,
Process
Go to: 
Project members, sign in to write a code review

Older revisions

r3310 by cxl on Mar 25, 2011   Diff
Web: ScgiServer Run - listenCount
parameter (thanks Mindtraveller!)
r2797 by cxl on Oct 19, 2010   Diff
.web: ScgiServer headers fixed
r2757 by cxl on Oct 8, 2010   Diff
web: ScgiServer moved to Web
All revisions of this file

File info

Size: 695 bytes, 34 lines
Powered by Google Project Hosting