Пример #1
0
        internal AutoReconnectPlugin GetReconnectPlugin()
        {
            AutoReconnectPlugin     pingPlugin = null;
            NetMsgProcessPluginBase p          = GetPlugin(99);

            if (p != null)
            {
                pingPlugin = (AutoReconnectPlugin)p;
            }
            return(pingPlugin);
        }
Пример #2
0
        public void Start()
        {
            NetStart(0);

            NetMsgProcessPluginBase plugin = Configuration.GetPlugin((byte)NetProperty.Pong);

            autoReconnectPlugin = ((ClientConfiguration)Configuration).GetReconnectPlugin();

            if (plugin != null)
            {
                pingPlugin = (NetPingPlugin)plugin;
            }
        }
Пример #3
0
 internal override void Init(NetworkCommon networkCommon)
 {
     {
         NetMsgProcessPluginBase p = GetPlugin((byte)NetProperty.Pong);
         if (p != null)
         {
             NetPingPlugin pingPlugin = (NetPingPlugin)p;
             pingPlugin.Enable = enablePing;
         }
     }
     {
         AutoReconnectPlugin p = GetReconnectPlugin();
         if (p != null)
         {
             p.Enable = enableReconnect;
         }
     }
     base.Init(networkCommon);
 }