sipxtacklib  Version 3.3
HttpConnection.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2006 SIPfoundry Inc.
3 // Licensed by SIPfoundry under the LGPL license.
4 //
5 // Copyright (C) 2006 Pingtel Corp.
6 // Licensed to SIPfoundry under a Contributor Agreement.
7 //
8 // $$
10 
11 #ifndef _HttpConnection_h_
12 #define _HttpConnection_h_
13 
14 // SYSTEM INCLUDES
15 
16 // APPLICATION INCLUDES
17 #include <os/OsDefs.h>
18 #include <net/HttpServer.h>
19 #include <net/HttpBody.h>
20 #include <net/NameValuePair.h>
21 #include <os/OsSocket.h>
22 #include <os/OsConnectionSocket.h>
23 #include <os/OsTimeLog.h>
24 #include <os/OsMsgQ.h>
25 #include <os/OsTask.h>
26 
27 // DEFINES
28 
29 class HttpServer;
30 
31 class HttpConnection : public OsTask, public UtlString
32 {
33 /* //////////////////////////// PUBLIC //////////////////////////////////// */
34 public:
36  HttpConnection(OsConnectionSocket* requestSocket,
37  HttpServer* httpServer);
38 
40  virtual ~HttpConnection();
41 
42 /* ============================ MANIPULATORS ============================== */
43  virtual int run(void* runArg);
44 
45 /* ============================ ACCESSORS ================================= */
46 /* ============================ INQUIRY =================================== */
47  bool toBeDeleted() {return mbToBeDeleted;}
48 /* //////////////////////////// PROTECTED ///////////////////////////////// */
49 protected:
50 
51 /* //////////////////////////// PRIVATE /////////////////////////////////// */
52 private:
53  OsConnectionSocket* mpRequestSocket;
54  HttpServer* mpHttpServer;
55  bool mbToBeDeleted;
56 
58  HttpConnection(const HttpConnection& nocopy);
59 
61  HttpConnection& operator=(const HttpConnection& noassignment);
62 };
63 
64 /* ============================ INLINE METHODS ============================ */
65 
66 #endif // _HttpConnection_h_
Definition: HttpConnection.h:31
virtual int run(void *runArg)
Definition: HttpConnection.cpp:80
Definition: HttpServer.h:46
HttpConnection(OsConnectionSocket *requestSocket, HttpServer *httpServer)
Constructor.
Definition: HttpConnection.cpp:51
bool toBeDeleted()
Definition: HttpConnection.h:47
virtual ~HttpConnection()
Destructor.
Definition: HttpConnection.cpp:62

sipXtackLib home page