コード例 #1
0
        /// <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();
        }
コード例 #2
0
 /// <summary>
 /// 设置TCP命令服务端
 /// </summary>
 /// <param name="commandServer">TCP命令服务端</param>
 public void SetCommandServer(fastCSharp.net.tcp.commandServer commandServer)
 {
     commandServer.OnClientVerify      += onClient;
     commandServer.OnCloseVerifyClient += onClose;
 }