Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jul 18, 2006, 1:30:58 AM (18 years ago)
Author:
bensch
Message:

ip is ready for deplyment

File:
1 edited

Legend:

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

    r9307 r9310  
    2121  public:
    2222    IP();
    23     IP(const std::string& ip);
     23    IP(const std::string& ip, int port = -1, bool resolve = true);
    2424    IP(int ip, int port);
    2525    IP(const IPaddress& ip);
     
    3030
    3131
     32    /** @returns the IP */
    3233    int ip() const { return this->_ip; };
     34    /** @returns the Port */
    3335    short port() const { return this->_port; };
    3436
     
    3638    std::string ipString() const;
    3739
    38 
    39 
    4040  public:
    41     static IP stringToIP(const std::string& ip);
     41    static IP stringToIP(const std::string& ip, int port = -1, bool resolve = true);
    4242
    4343
Note: See TracChangeset for help on using the changeset viewer.