X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finet6.h;h=f5a7079af2b55eaee5e0132167c84769d6e72d37;hb=28e7bf7a13656620452e19d017ea5eedf14a8bc5;hp=02ec4503b660c724ec94f93e9cf765555053f0cf;hpb=1b2aabf076169e6d2049227188e464e95ac40514;p=libs%2Fnet.git diff --git a/source/inet6.h b/source/inet6.h index 02ec450..f5a7079 100644 --- a/source/inet6.h +++ b/source/inet6.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspnet -Copyright © 2011 Mikkosoft Productions, Mikko Rasa -Distributed under the LGPL -*/ - #ifndef MSP_NET_INET6_H_ #define NSP_NET_INET6_H_ @@ -34,13 +27,13 @@ public: Inet6Addr(const sockaddr_in6 &); Inet6Addr(unsigned char [16], in_port_t); + virtual Inet6Addr *copy() const { return new Inet6Addr(*this); } + virtual Family get_family() const { return INET6; } virtual std::string str() const; virtual unsigned fill_sockaddr(sockaddr &) const; virtual unsigned fill_sockaddr(sockaddr_storage &) const; - - virtual Inet6Addr *copy() const { return new Inet6Addr(*this); } }; } // namespace Net