X-Git-Url: http://git.tdb.fi/?p=libs%2Fnet.git;a=blobdiff_plain;f=source%2Fsockaddr.cpp;h=f6123ca38c685e9b3631593bdd9e89b4de248587;hp=08babb12c5f881c84a59471c06b178e4e2c173a1;hb=4696a776e2875697ea0d6a733609dd9c37918971;hpb=65b029e8334d4dfc9a6161fc04740b03d56a8e2f diff --git a/source/sockaddr.cpp b/source/sockaddr.cpp index 08babb1..f6123ca 100644 --- a/source/sockaddr.cpp +++ b/source/sockaddr.cpp @@ -1,7 +1,9 @@ -#include +#include #include "inet.h" #include "inet6.h" +using namespace std; + namespace Msp { namespace Net { @@ -14,7 +16,7 @@ SockAddr *SockAddr::create(const sockaddr_storage &sa) case AF_INET6: return new Inet6Addr(reinterpret_cast(sa)); default: - throw InvalidParameterValue("Unknown address family"); + throw invalid_argument("SockAddr::create"); } }