Changeset 61 in cheroxy for trunk/include/CRXSocket.h


Ignore:
Timestamp:
01/25/13 17:54:39 (11 years ago)
Author:
cheese
Message:

#1 apply reuseaddr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/CRXSocket.h

    r59 r61  
    3636#define ERROR_TCPSOCKET_FAILED_TO_SET_SOCKOPT   ERROR_TCPSOCKET - 12
    3737#define ERROR_TCPSOCKET_FAILED_TO_SET_TIMEOUT   ERROR_TCPSOCKET - 13
     38#define ERROR_TCPSOCKET_FAILED_TO_GET_SOCKOPT   ERROR_TCPSOCKET - 14
    3839
    3940class CRXSocket : public CRXException
    4041{
    4142private:
    42     static bool         mInitialized;
    4343    struct sockaddr_in  mAddress;
    4444    int                 mSocket;
     
    7373     * common functions
    7474     */
    75     CRXSocket                   (int aSocket = 0);
     75    CRXSocket                   (int aSocket = -1);
    7676
    7777    ~CRXSocket                  (void);
     
    8686
    8787    CRXSocket   & operator =    (int aSocket);
     88
     89    int         GetOption       (const int  aOptName,
     90                                 void       * aOptVal,
     91                                 size_t     * aOptLen);
    8892
    8993    int         SetOption       (const int      aOptName,
Note: See TracChangeset for help on using the changeset viewer.