From: Mikko Rasa Date: Wed, 10 Aug 2011 16:30:16 +0000 (+0300) Subject: Add back get_port functions to InetAddr and Inet6Addr X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=9661bcedc3518124bcdd95c239fa92419cd31216;p=libs%2Fnet.git Add back get_port functions to InetAddr and Inet6Addr --- diff --git a/source/inet.h b/source/inet.h index 20f433a..639e64c 100644 --- a/source/inet.h +++ b/source/inet.h @@ -24,6 +24,7 @@ public: virtual SysAddr to_sys() const; virtual Family get_family() const { return INET; } + unsigned get_port() const { return port; } virtual std::string str() const; }; diff --git a/source/inet6.h b/source/inet6.h index 97197c7..cc33e76 100644 --- a/source/inet6.h +++ b/source/inet6.h @@ -21,6 +21,7 @@ public: virtual SysAddr to_sys() const; virtual Family get_family() const { return INET6; } + unsigned get_port() const { return port; } virtual std::string str() const; };