Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 3
0
 public Setting()
 {
     TcpConfiguration = new TcpConfiguration();
 }