3 This file is part of libmspnet
4 Copyright © 2008 Mikkosoft Productions, Mikko Rasa
5 Distributed under the LGPL
8 #include <msp/core/except.h>
14 SockAddr *SockAddr::create(sockaddr &sa)
19 return new InetAddr(reinterpret_cast<sockaddr_in &>(sa));
21 throw InvalidParameterValue("Unknown address family");