コード例 #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);
 }