Changeset 45 in cheroxy for trunk/include/CRXProxy.h
- Timestamp:
- 11/22/12 18:38:07 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/CRXProxy.h
r44 r45 19 19 #define ERROR_PROXY_FAILED_TO_CONNECT_TO_SERVER ERROR_PROXY - 5 20 20 #define ERROR_PROXY_FAILED_TO_SET_RESPONSE ERROR_PROXY - 6 21 #define ERROR_PROXY_FAILED_TO_ACCEPT_CLIENT ERROR_PROXY - 7 21 22 22 23 … … 35 36 36 37 public: 37 CRXProxy ( void);38 CRXProxy (const int aSocket); 38 39 ~CRXProxy (void); 39 40 40 41 public: 41 42 /* common utilities */ 42 void SetClientSocket (const int aSocket);43 43 void SetServerTimeout (const int aTimeout = TCPSOCKET_NO_TIMEOUT); 44 44 void Close (void); 45 46 public:47 /* interface to filter */48 void SetRequestFilter (const E_CRX_FILTER_REQUEST aType,49 const bool aIsMatched,50 const std::string aValue);51 void RemoveRequestFilter (const E_CRX_FILTER_REQUEST aType);52 bool CheckRequestFilter (const E_CRX_FILTER_REQUEST aType);53 45 54 46 public: … … 64 56 public: 65 57 /* HTTP data */ 66 void SetHttpRequest (const char * aHttpRequest); 67 char * GetHttpRequest (char * aBuffer, 68 const int aBufferSize) const; 69 int GetHttpRequestLength (void) const; 70 71 void SetHttpResponse (const char * aHttpResponse); 72 char * GetHttpResponseHeader (char * aBuffer, 73 const int aBufferSize) const; 74 int GetHttpResponseHeaderLength (void) const; 75 char * GetHttpResponseBody (char * aBuffer, 76 const int aBufferSize) const; 77 int GetHttpResponseBodyLength (void) const; 78 58 CRXFilter & GetFilter (void) const; 59 CRXHttpRequest & GetHttpRequest (void); 60 CRXHttpResponse & GetHttpResponse (void); 79 61 }; 80 62
Note:
See TracChangeset
for help on using the changeset viewer.