-/* $Id$
-
-This file is part of libmspnet
-Copyright © 2011 Mikkosoft Productions, Mikko Rasa
-Distributed under the LGPL
-*/
-
-#include <msp/core/except.h>
-#include <msp/strings/formatter.h>
+#include <msp/strings/format.h>
#include "inet6.h"
using namespace std;
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