Distributed under the LGPL
*/
-#include <errno.h>
+#include <cerrno>
#include <msp/core/refptr.h>
#include <msp/strings/formatter.h>
#include "streamlistensocket.h"
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);