Changeset 45 in cheroxy for trunk/include/CRXProxy.h


Ignore:
Timestamp:
11/22/12 18:38:07 (11 years ago)
Author:
cheese
Message:

#1 change access modifier of filter and http messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/CRXProxy.h

    r44 r45  
    1919#define ERROR_PROXY_FAILED_TO_CONNECT_TO_SERVER ERROR_PROXY - 5
    2020#define ERROR_PROXY_FAILED_TO_SET_RESPONSE      ERROR_PROXY - 6
     21#define ERROR_PROXY_FAILED_TO_ACCEPT_CLIENT     ERROR_PROXY - 7
    2122
    2223
     
    3536
    3637public:
    37     CRXProxy            (void);
     38    CRXProxy            (const int aSocket);
    3839    ~CRXProxy           (void);
    3940
    4041public:
    4142    /* common utilities */
    42     void    SetClientSocket             (const int  aSocket);
    4343    void    SetServerTimeout            (const int  aTimeout = TCPSOCKET_NO_TIMEOUT);
    4444    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);
    5345
    5446public:
     
    6456public:
    6557    /* 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);
    7961};
    8062
Note: See TracChangeset for help on using the changeset viewer.