From 9661bcedc3518124bcdd95c239fa92419cd31216 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 10 Aug 2011 19:30:16 +0300 Subject: [PATCH] Add back get_port functions to InetAddr and Inet6Addr --- source/inet.h | 1 + source/inet6.h | 1 + 2 files changed, 2 insertions(+) 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; }; -- 2.43.0