28,7 → 28,7 |
Connecting, |
Connected, |
ShutdownSend, |
ShutdownReceived, |
ShutdownReceive, |
Closed |
} |
|
430,7 → 430,7 |
else if(this.localState == SocketState.Connected && localState == SocketState.ShutdownSend) |
{ |
} |
else if(this.localState == SocketState.Connected && localState == SocketState.ShutdownReceived) |
else if(this.localState == SocketState.Connected && localState == SocketState.ShutdownReceive) |
{ |
if(localEndTimestamp == DateTime.MinValue) localEndTimestamp = DateTime.Now; |
} |
442,14 → 442,14 |
{ |
if(localEndTimestamp == DateTime.MinValue) localEndTimestamp = DateTime.Now; |
} |
else if(this.localState == SocketState.ShutdownSend && localState == SocketState.ShutdownReceived) |
else if(this.localState == SocketState.ShutdownSend && localState == SocketState.ShutdownReceive) |
{ |
if(localEndTimestamp == DateTime.MinValue) localEndTimestamp = DateTime.Now; |
} |
else if(this.localState == SocketState.ShutdownReceived && localState == SocketState.ShutdownSend) |
else if(this.localState == SocketState.ShutdownReceive && localState == SocketState.ShutdownSend) |
{ |
} |
else if(this.localState == SocketState.ShutdownReceived && localState == SocketState.Closed) |
else if(this.localState == SocketState.ShutdownReceive && localState == SocketState.Closed) |
{ |
if(localEndTimestamp == DateTime.MinValue) localEndTimestamp = DateTime.Now; |
} |
487,7 → 487,7 |
else if(this.remoteState == SocketState.Connected && remoteState == SocketState.ShutdownSend) |
{ |
} |
else if(this.remoteState == SocketState.Connected && remoteState == SocketState.ShutdownReceived) |
else if(this.remoteState == SocketState.Connected && remoteState == SocketState.ShutdownReceive) |
{ |
if(remoteEndTimestamp == DateTime.MinValue) remoteEndTimestamp = DateTime.Now; |
} |
499,14 → 499,14 |
{ |
if(remoteEndTimestamp == DateTime.MinValue) remoteEndTimestamp = DateTime.Now; |
} |
else if(this.remoteState == SocketState.ShutdownSend && remoteState == SocketState.ShutdownReceived) |
else if(this.remoteState == SocketState.ShutdownSend && remoteState == SocketState.ShutdownReceive) |
{ |
if(remoteEndTimestamp == DateTime.MinValue) remoteEndTimestamp = DateTime.Now; |
} |
else if(this.remoteState == SocketState.ShutdownReceived && remoteState == SocketState.ShutdownSend) |
else if(this.remoteState == SocketState.ShutdownReceive && remoteState == SocketState.ShutdownSend) |
{ |
} |
else if(this.remoteState == SocketState.ShutdownReceived && remoteState == SocketState.Closed) |
else if(this.remoteState == SocketState.ShutdownReceive && remoteState == SocketState.Closed) |
{ |
if(remoteEndTimestamp == DateTime.MinValue) remoteEndTimestamp = DateTime.Now; |
} |
795,7 → 795,7 |
tcp.SendLog(LogLevel.Info, "Got showdown from local end"); |
|
localSocket.Shutdown(SocketShutdown.Receive); |
tcp.SetLocalState(SocketState.ShutdownReceived); |
tcp.SetLocalState(SocketState.ShutdownReceive); |
localSocketReceiveShutdown = true; |
CheckLocalSocket(); |
|
939,7 → 939,7 |
tcp.SendLog(LogLevel.Info, "Got showdown from remote end"); |
|
remoteSocket.Shutdown(SocketShutdown.Receive); |
tcp.SetRemoteState(SocketState.ShutdownReceived); |
tcp.SetRemoteState(SocketState.ShutdownReceive); |
remoteSocketReceiveShutdown = true; |
CheckRemoteSocket(); |
|