Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
 void ConnectionError(UdpConnectionError error)
 {
     ConnectionError(error, "");
 }
Ejemplo n.º 3
0
 void ConnectionError(UdpConnectionError error)
 {
     ConnectionError(error, "");
 }
Ejemplo n.º 4
0
        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;
            }
        }
Ejemplo n.º 5
0
        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;
            }
        }