3 This file is part of libmspnet
4 Copyright © 2011 Mikkosoft Productions, Mikko Rasa
5 Distributed under the LGPL
8 #ifndef MSP_NET_INET6_H_
9 #define NSP_NET_INET6_H_
15 #include <netinet/in.h>
22 class Inet6Addr: public SockAddr
26 typedef u_short in_port_t;
34 Inet6Addr(const sockaddr_in6 &);
35 Inet6Addr(unsigned char [16], in_port_t);
37 virtual Family get_family() const { return INET6; }
38 virtual std::string str() const;
40 virtual unsigned fill_sockaddr(sockaddr &) const;
41 virtual unsigned fill_sockaddr(sockaddr_storage &) const;
43 virtual Inet6Addr *copy() const { return new Inet6Addr(*this); }