Exemple #1
0
        private void Handle(udp_reply_spacket msg)
        {
            l.Info(msg.ToString());

            switch (msg.Reply)
            {
            case CommunicationSwitch.TCP_OK:
                break;

            case CommunicationSwitch.UDP_OK:
                net.UdpSocketRemotePort = msg.port;
                net.IsUdpActive         = true;
                net.RequestFullUpdateUdp();
                break;

            case CommunicationSwitch.DENIED:
                l.Warn("CommunicationSwitch.DENIED");
                break;

            case CommunicationSwitch.VERIFY:


                break;

            default:
                break;
            }
        }
        private void Handle(udp_reply_spacket msg)
        {
            l.Info(msg.ToString());

            switch (msg.Reply)
            {
                case CommunicationSwitch.TCP_OK:
                    break;
                case CommunicationSwitch.UDP_OK:
                    net.UdpSocketRemotePort = msg.port;
                    net.IsUdpActive = true;
                    net.RequestFullUpdateUdp();
                    break;
                case CommunicationSwitch.DENIED:
                    l.Warn("CommunicationSwitch.DENIED");
                    break;
                case CommunicationSwitch.VERIFY:

                    break;
                default:
                    break;
            }
        }