void ConnectionError(UdpConnectionError error, string message) { UdpLog.Debug("error '{0} - {2}' on connection to {1}", error.ToString(), endpoint.ToString(), message); switch (error) { case UdpConnectionError.SequenceOutOfBounds: ChangeState(UdpConnectionState.Disconnected); break; case UdpConnectionError.IncorrectCommand: ChangeState(UdpConnectionState.Disconnected); break; case UdpConnectionError.SendWindowFull: ChangeState(UdpConnectionState.Disconnected); break; } }
void ConnectionError(UdpConnectionError error) { ConnectionError(error, ""); }
void ConnectionError(UdpConnectionError error) { UdpLog.Debug("error '{0}' on connection to {1}", error.ToString(), endpoint.ToString()); switch (error) { case UdpConnectionError.SequenceOutOfBounds: ChangeState(UdpConnectionState.Disconnected); break; case UdpConnectionError.IncorrectCommand: ChangeState(UdpConnectionState.Disconnected); break; case UdpConnectionError.SendWindowFull: ChangeState(UdpConnectionState.Disconnected); break; } }
void ConnectionError(UdpConnectionError error, string message) { UdpLog.Error("error '{0} - {2}' on connection to {1}", error.ToString(), endpoint.ToString(), message); // Erhune: moved from Debug to Error switch (error) { case UdpConnectionError.SequenceOutOfBounds: ChangeState(UdpConnectionState.Disconnected); break; case UdpConnectionError.IncorrectCommand: ChangeState(UdpConnectionState.Disconnected); break; case UdpConnectionError.SendWindowFull: ChangeState(UdpConnectionState.Disconnected); break; } }