Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9305 in orxonox.OLD for branches/proxy/src/lib/util/ip.h


Ignore:
Timestamp:
Jul 17, 2006, 1:54:36 PM (19 years ago)
Author:
bensch
Message:

compiles again

File:
1 edited

Legend:

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

    r9304 r9305  
    2424
    2525
    26     float ip() const;
    27     float ip(unsigned int part) const;
     26    int ip() const { return this->_ip; };
     27    short port() const { return this->_port; };
    2828
     29    int ip(unsigned int part) const;
    2930    std::string& ipString() const;
    3031
     
    3334  public:
    3435    static int stringToIP(const std::string& ip);
    35     static const std::string& ipToString(int ip);
     36    static std::string ipToString(const IPaddress& ipaddr);
     37    static std::string ipToString(int ip);
    3638
    3739  private:
    3840    int           _ip;  //!< the IP in int form.
    39 
     41    short         _port;
    4042
    4143};
Note: See TracChangeset for help on using the changeset viewer.