X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstreamlistensocket.cpp;h=2a8bc3d216e89c85a4a69e1dd17017601c7e4ee7;hb=e131f8b448a24aff7cb556748cb67c6c4496b606;hp=df80b001f30e1eef9941d4ca70af353145c657b7;hpb=f59eded7c3e162bbdfc6db424c9badc730017698;p=libs%2Fnet.git diff --git a/source/streamlistensocket.cpp b/source/streamlistensocket.cpp index df80b00..2a8bc3d 100644 --- a/source/streamlistensocket.cpp +++ b/source/streamlistensocket.cpp @@ -5,7 +5,7 @@ Copyright © 2008 Mikkosoft Productions, Mikko Rasa Distributed under the LGPL */ -#include +#include #include #include #include "streamlistensocket.h" @@ -30,7 +30,7 @@ void StreamListenSocket::listen(const SockAddr &addr, unsigned backlog) int err=::listen(handle, backlog); if(err==-1) - throw Exception(format("Unable to listen: %s", strerror(errno))); + throw SystemError("Unable to listen", errno); #ifdef WIN32 WSAEventSelect(handle, event, FD_ACCEPT);