I have added following to them:
void Socket::setConditionalAccept(bool enable) throw
(IOError) {
int opt = (enable ? 1 : 0);
int ret = setsockopt(socket_handle(this),
SOL_SOCKET, SO_CONDITIONAL_ACCEPT, (char*)&opt,
sizeof(opt));
if(ret == SOCKET_ERROR)
throw IOError(socket_errno, "Could not set socket
condition accept option", P_SOURCEINFO);
}
void Socket::setRecBuff(size_t size_) throw(IOError) {
int ret = setsockopt(socket_handle(this),
SOL_SOCKET, SO_RCVBUF, (char*)&size_, sizeof(size_));
if(ret == SOCKET_ERROR)
throw IOError(socket_errno, "Could not set socket
receive buffer", P_SOURCEINFO);
}
could you include another options also?
---------
Dmitry