/// <summary> /// 设置TCP服务端 /// </summary> /// <param name="tcpServer">TCP服务端</param> public override void SetCommandServer(fastCSharp.net.tcp.commandServer tcpServer) { base.SetCommandServer(tcpServer); cacheFile = fastCSharp.config.pub.Default.CachePath + tcpServer.ServiceName + @".cache"; fromCacheFile(); //onRegisterHandle = onRegister; //onRegistersHandle = onRegister; //removeRegisterHandle = removeRegister; //fromCacheFile(); }
/// <summary> /// 设置TCP命令服务端 /// </summary> /// <param name="commandServer">TCP命令服务端</param> public void SetCommandServer(fastCSharp.net.tcp.commandServer commandServer) { commandServer.OnClientVerify += onClient; commandServer.OnCloseVerifyClient += onClose; }