{
int sock = ::socket(PF_INET,SOCK_STREAM,0);
if (sock < 0)
- throw SystemException(errno);
+ throwErrno();
body().fd(sock);
}
{
int sock = ::socket(PF_INET,SOCK_STREAM,0);
if (sock < 0)
- throw SystemException(errno);
+ throwErrno();
body().fd(sock);
}
bind(address);
reuseaddr(true);
if (::listen(body().fd(),backlog) < 0)
- throw SystemException(errno);
+ throwErrno();
}
prefix_ std::auto_ptr<senf::SocketProtocol> senf::TCPv4SocketProtocol::clone()
{
int sock = ::socket(PF_INET6,SOCK_STREAM,0);
if (sock < 0)
- throw SystemException(errno);
+ throwErrno();
body().fd(sock);
}
{
int sock = ::socket(PF_INET6,SOCK_STREAM,0);
if (sock < 0)
- throw SystemException(errno);
+ throwErrno();
body().fd(sock);
}
bind(address);
reuseaddr(true);
if (::listen(body().fd(),backlog) < 0)
- throw SystemException(errno);
+ throwErrno();
}
prefix_ std::auto_ptr<senf::SocketProtocol> senf::TCPv6SocketProtocol::clone()