Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9385 in orxonox.OLD for branches/proxy/src/lib/network/ip.h


Ignore:
Timestamp:
Jul 21, 2006, 1:09:19 PM (18 years ago)
Author:
bensch
Message:

orxonox/proxy: better proxy-width approximation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/network/ip.h

    r9383 r9385  
    2626    IP(const IPaddress& ip);
    2727    IP(const IP& ip);
     28    IP(unsigned int first, unsigned int second, unsigned int third, unsigned int fourth, int port = IP::_defaultPort);
    2829
    2930    /// OPERATORS
     
    3536    /// RETRIVEAL
    3637    /** @returns the IP */
    37     int host() const { return this->_ip; };
    38     int* hostRef()  { return &this->_ip; }
     38    int host() const { return this->_host; };
     39    int* hostRef()  { return &this->_host; }
    3940    /** @returns the Port */
    4041    int port() const { return this->_port; };
    4142    int* portRef() { return &this->_port; };
    4243
    43     inline IPaddress getSDLNotation() { IPaddress sdlIP; sdlIP.host = this->_ip; sdlIP.port = this->_port; return sdlIP; }
     44    inline IPaddress getSDLNotation() { IPaddress sdlIP; sdlIP.host = this->_host; sdlIP.port = this->_port; return sdlIP; }
    4445
    4546    int ipPart(unsigned int part) const;
     
    5960
    6061  private:
    61     int           _ip;           //!< The IP in int form.
    62     int         _port;         //!< The Port number of the IP
     62    int           _host;           //!< The IP in int form.
     63    int           _port;         //!< The Port number of the IP
    6364
    64     static int  _defaultPort;  //!< Default Port
     65    static int    _defaultPort;  //!< Default Port
    6566};
    6667
Note: See TracChangeset for help on using the changeset viewer.