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