int value;
socklen_t len (sizeof(value));
if (::getsockopt(body().fd(),SOL_TCP,TCP_NODELAY,&value,&len) < 0)
- throw SystemException(errno);
+ throwErrno();
return value;
}
{
int ivalue (value);
if (::setsockopt(body().fd(),SOL_TCP,TCP_NODELAY,&ivalue,sizeof(ivalue)) < 0)
- throw SystemException(errno);
+ throwErrno();
}
prefix_ unsigned senf::TCPProtocol::siocinq()
{
int n;
if (::ioctl(body().fd(),SIOCINQ,&n) < 0)
- throw SystemException(errno);
+ throwErrno();
return n;
}
{
int n;
if (::ioctl(body().fd(),SIOCOUTQ,&n) < 0)
- throw SystemException(errno);
+ throwErrno();
return n;
}