Changeset 44 in cheroxy for trunk/include


Ignore:
Timestamp:
11/22/12 15:21:02 (11 years ago)
Author:
cheese
Message:

#1 change logic more detail

Location:
trunk/include
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/CRXHttpMessage.h

    r31 r44  
    66
    77#include <string>
     8
     9#define CRLF                "\r\n"
     10#define CRLF2               "\r\n\r\n" 
    811
    912class CRXHttpMessage
     
    2629
    2730    void            ResetMessage    (void);
    28 
    29     virtual CRXHttpMessage &    operator =  (const char * aHttpMessage) = 0;
    3031};
    3132
  • trunk/include/CRXHttpRequest.h

    r28 r44  
    3131    std::string         GetHeader           (void) const;
    3232
    33     CRXHttpRequest &    operator =          (const char * aHttpRequest);
    34 
    3533public:
    3634    std::string         GetURL              (void) const;
  • trunk/include/CRXHttpResponse.h

    r26 r44  
    3232private:
    3333    void                Parse               (void);
    34     int                 ParseContent        (const char * aContent,
    35                                              const int  aLength);
    3634    void                Reset               (void);
    3735    void                ResetContent        (void);
     
    4038    int                 GetStatusCode       (void) const;
    4139
    42     int                 SetResponse         (const char * aHttpResponse,
     40    bool                IsChunked           (void) const;
     41    int                 SetResponseAll      (const char * aHttpResponse,
    4342                                             const int  aResponseLength);
     43    void                SetHeader           (const char * aHttpResponse);
    4444    std::string         GetHeader           (void) const;
     45    int                 SetContent          (const char * aContent,
     46                                             const int  aLength);
    4547    const char *        GetContentBody      (void) const;
    4648    int                 GetContentLength    (void) const;
    47 
    48     CRXHttpResponse &   operator =          (const char * aHttpResponse);
    4949};
    5050
  • trunk/include/CRXProxy.h

    r36 r44  
    3838    ~CRXProxy           (void);
    3939
    40     static CRXProxy *   GetNewInstance  (void);
    41 
    4240public:
    4341    /* common utilities */
    44     void    ReleaseInstance             (void);
    45 
    4642    void    SetClientSocket             (const int  aSocket);
    4743    void    SetServerTimeout            (const int  aTimeout = TCPSOCKET_NO_TIMEOUT);
Note: See TracChangeset for help on using the changeset viewer.