示例#1
0
 public SocketClientWithAck(ConnectArgs args, SocketCommandArgs socketArgs)
 {
     _args    = args;
     _clients = new List <IConnection <Context <byte[]>, byte[]> >();
     _connectionEnumerator = this.GetNext().GetEnumerator();
     _payload = GetChars(socketArgs.Size);
     _monitor = new ConnectionRateMonitor();
 }
示例#2
0
 public SocketClientWithAck(ConnectArgs args, SocketCommandArgs socketArgs)
 {
     _args = args;
     _socketArgs = socketArgs;
     _endpoint = SocketUtility.GetFirstIpEndPoint(_args.Server, _args.Port);
     _clients = new List<IConnection<Context<byte[]>, byte[]>>();
     _connections = GetNext().GetEnumerator();
     _payload = GetChars(_socketArgs.Size);
     _monitor = new ConnectionRateMonitor();
 }