internal AutoReconnectPlugin GetReconnectPlugin() { AutoReconnectPlugin pingPlugin = null; NetMsgProcessPluginBase p = GetPlugin(99); if (p != null) { pingPlugin = (AutoReconnectPlugin)p; } return(pingPlugin); }
public void Start() { NetStart(0); NetMsgProcessPluginBase plugin = Configuration.GetPlugin((byte)NetProperty.Pong); autoReconnectPlugin = ((ClientConfiguration)Configuration).GetReconnectPlugin(); if (plugin != null) { pingPlugin = (NetPingPlugin)plugin; } }
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); }