protected SocketIocpError ( int error, RioSharp.RioConnectionOrientedSocket socket, byte status ) : bool | ||
error | int | |
socket | RioSharp.RioConnectionOrientedSocket | |
status | byte | |
Результат | bool |
protected override bool SocketIocpError(int error, RioConnectionOrientedSocket socket, byte status)
{
if (error == Kernel32.ERROR_ABANDONED_WAIT_0)
return true;
else if (error == Kernel32.ERROR_NETNAME_DELETED)
BeginRecycle(socket,false);
else
throw new Win32Exception(error);
return false;
}