示例#1
0
 public TcpClientConnector()
 {
     _tcpConfiguration = Configuration.Instance.Setting.TcpConfiguration;
     _connectSocketArgsPool = new SocketArgsPool("TcpClientConnector._connectSocketArgsPool", _tcpConfiguration.ConnectPoolSize, CreateConnectSocketArgs);
     _pendingConections = new ConcurrentDictionary<Guid, PendingConnection>();
     _timer = new Timer(TimerCallback, null, CheckPeriodMs, Timeout.Infinite);
 }
示例#2
0
 public TcpClientConnector()
 {
     _tcpConfiguration      = Configuration.Instance.Setting.TcpConfiguration;
     _connectSocketArgsPool = new SocketArgsPool("TcpClientConnector._connectSocketArgsPool", _tcpConfiguration.ConnectPoolSize, CreateConnectSocketArgs);
     _pendingConections     = new ConcurrentDictionary <Guid, PendingConnection>();
     _timer = new Timer(TimerCallback, null, CheckPeriodMs, Timeout.Infinite);
 }
示例#3
0
 public Setting()
 {
     TcpConfiguration = new TcpConfiguration();
 }