]> git.tdb.fi Git - libs/net.git/blobdiff - source/inet.h
Add an overload for resolve that takes host and service separately
[libs/net.git] / source / inet.h
index 94436f9c877873aceaa1b3a21aa822ff4f779b29..639e64cbb1eca5ec8c9fc2e0d5247c91600adf38 100644 (file)
@@ -23,8 +23,9 @@ public:
 
        virtual SysAddr to_sys() const;
 
-       Family get_family() const { return INET; }
-       std::string str() const;
+       virtual Family get_family() const { return INET; }
+       unsigned get_port() const { return port; }
+       virtual std::string str() const;
 };
 
 } // namespace Net