{
int sock = ::socket(PF_INET,SOCK_STREAM,0);
if (sock < 0)
- throwErrno();
+ throw SystemException();
fd(sock);
}
{
int sock = ::socket(PF_INET,SOCK_STREAM,0);
if (sock < 0)
- throwErrno();
+ throw SystemException();
fd(sock);
}
serverHandle().bind(address);
reuseaddr(true);
if (::listen(fd(),backlog) < 0)
- throwErrno();
+ throw SystemException();
}
///////////////////////////////////////////////////////////////////////////
{
int sock = ::socket(PF_INET6,SOCK_STREAM,0);
if (sock < 0)
- throwErrno();
+ throw SystemException();
fd(sock);
}
{
int sock = ::socket(PF_INET6,SOCK_STREAM,0);
if (sock < 0)
- throwErrno();
+ throw SystemException();
fd(sock);
}
serverHandle().bind(address);
reuseaddr(true);
if (::listen(fd(),backlog) < 0)
- throwErrno();
+ throw SystemException();
}
///////////////////////////////cc.e////////////////////////////////////////