diff options
Diffstat (limited to 'httpresource_base.h')
-rwxr-xr-x | httpresource_base.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/httpresource_base.h b/httpresource_base.h index 8341c8f..250f588 100755 --- a/httpresource_base.h +++ b/httpresource_base.h @@ -23,12 +23,17 @@ #ifndef __HTTPREQUEST_base_H__ #define __HTTPREQUEST_base_H__ +#include <string> + +using namespace std; + class SmartTvServer; class cHttpResourceBase { public: - cHttpResourceBase(int f, int id, int port, SmartTvServer* fac): mFd(f), mReqId(id), mFactory(fac), mServerPort(port) {}; + cHttpResourceBase(int f, int id, int port, string addr, SmartTvServer* fac): mFd(f), mReqId(id), mFactory(fac), mServerPort(port), + mRemoteAddr (addr) {}; virtual ~cHttpResourceBase() {}; virtual int handleRead() =0; @@ -39,6 +44,8 @@ class cHttpResourceBase { int mReqId; SmartTvServer* mFactory; int mServerPort; + + string mRemoteAddr; }; |