]> git.tdb.fi Git - libs/net.git/blobdiff - source/inet.h
Style update: reorder class members
[libs/net.git] / source / inet.h
index a65813bbd6af8698ed728fbd3dd2b998c685cc1c..75735a7f36e1cf3e536dadf0b6d4915e26cb1fcd 100644 (file)
@@ -30,12 +30,13 @@ public:
        InetAddr(const sockaddr_in &);
        InetAddr(in_addr_t, in_port_t);
 
+       virtual InetAddr *copy() const { return new InetAddr(*this); }
+
        Family get_family() const { return INET; }
        in_addr_t get_addr() const { return ntohl(addr); }
        in_port_t get_port() const { return ntohs(port); }
        std::string str() const;
        virtual unsigned fill_sockaddr(sockaddr &) const;
-       virtual InetAddr *copy() const { return new InetAddr(*this); }
 };
 
 } // namespace Net