X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finet6.cpp;h=6903a778d2998f56e03d851c7c6ba830346c7a96;hb=6102d830138013216241b6723527246764103fa0;hp=dbbf2dbb61a34a20bd8dc4484440220ad397e2a0;hpb=1b2aabf076169e6d2049227188e464e95ac40514;p=libs%2Fnet.git diff --git a/source/inet6.cpp b/source/inet6.cpp index dbbf2db..6903a77 100644 --- a/source/inet6.cpp +++ b/source/inet6.cpp @@ -1,12 +1,4 @@ -/* $Id$ - -This file is part of libmspnet -Copyright © 2011 Mikkosoft Productions, Mikko Rasa -Distributed under the LGPL -*/ - -#include -#include +#include #include "inet6.h" using namespace std; @@ -49,7 +41,7 @@ string Inet6Addr::str() const unsigned Inet6Addr::fill_sockaddr(sockaddr &) const { - throw Exception("Inet6Addr doesn't fit in struct sockaddr"); + throw logic_error("sizeof(sockaddr_in6)>sizeof(sockaddr)"); } unsigned Inet6Addr::fill_sockaddr(sockaddr_storage &sa) const