/// <summary>
 /// portServer TCP调用服务端
 /// </summary>
 /// <param name="attribute">TCP调用服务器端配置信息</param>
 /// <param name="verify">TCP验证实例</param>
 /// <param name="value">TCP服务目标对象</param>
 public tcpServer(fastCSharp.code.cSharp.tcpServer attribute = null, fastCSharp.code.cSharp.tcpBase.ITcpVerify verify = null, fastCSharp.demo.udpPortServer.portServer value = null)
     : base(attribute ?? fastCSharp.code.cSharp.tcpServer.GetConfig("portServer", typeof(fastCSharp.demo.udpPortServer.portServer)), verify)
 {
     _value_ = value ?? new fastCSharp.demo.udpPortServer.portServer();
     setCommands(1);
     identityOnCommands[0 + 128].Set(0 + 128, 256);
 }
示例#2
0
 /// <summary>
 /// loadBalancingTest TCP调用服务端
 /// </summary>
 /// <param name="attribute">TCP调用服务器端配置信息</param>
 /// <param name="verify">TCP验证实例</param>
 /// <param name="value">TCP服务目标对象</param>
 public tcpServer(fastCSharp.code.cSharp.tcpServer attribute = null, fastCSharp.code.cSharp.tcpBase.ITcpVerify verify = null, fastCSharp.demo.loadBalancingTcpCommand.server value = null)
     : base(attribute ?? fastCSharp.code.cSharp.tcpServer.GetConfig("loadBalancingTest", typeof(fastCSharp.demo.loadBalancingTcpCommand.server)), verify)
 {
     _value_ = value ?? new fastCSharp.demo.loadBalancingTcpCommand.server();
     setCommands(2);
     identityOnCommands[0 + 128].Set(0 + 128);
     identityOnCommands[1 + 128].Set(1 + 128);
 }
 /// <summary>
 /// tcpPerformance TCP调用服务端
 /// </summary>
 /// <param name="attribute">TCP调用服务器端配置信息</param>
 /// <param name="verify">TCP验证实例</param>
 /// <param name="value">TCP服务目标对象</param>
 public tcpServer(fastCSharp.code.cSharp.tcpServer attribute = null, fastCSharp.code.cSharp.tcpBase.ITcpVerify verify = null, fastCSharp.demo.tcpPerformanceServer.performanceServer value = null)
     : base(attribute ?? fastCSharp.code.cSharp.tcpServer.GetConfig("tcpPerformance", typeof(fastCSharp.demo.tcpPerformanceServer.performanceServer)), verify)
 {
     _value_ = value ?? new fastCSharp.demo.tcpPerformanceServer.performanceServer();
     setCommands(2);
     identityOnCommands[0 + 128].Set(0 + 128);
     identityOnCommands[1 + 128].Set(1 + 128);
     _value_.SetCommandServer(this);
 }
 /// <summary>
 ///  TCP调用服务端
 /// </summary>
 /// <param name="attribute">TCP调用服务器端配置信息</param>
 /// <param name="verify">TCP验证实例</param>
 /// <param name="value">TCP服务目标对象</param>
 public tcpServer(fastCSharp.code.cSharp.tcpServer attribute = null, fastCSharp.code.cSharp.tcpBase.ITcpVerify verify = null, fastCSharp.demo.chatServer.server value = null)
     : base(attribute ?? fastCSharp.code.cSharp.tcpServer.GetConfig("", typeof(fastCSharp.demo.chatServer.server)), verify)
 {
     _value_ = value ?? new fastCSharp.demo.chatServer.server();
     setCommands(5);
     identityOnCommands[0 + 128].Set(0 + 128);
     identityOnCommands[1 + 128].Set(1 + 128, 0);
     identityOnCommands[2 + 128].Set(2 + 128, 0);
     identityOnCommands[3 + 128].Set(3 + 128);
     identityOnCommands[4 + 128].Set(4 + 128, 0);
 }