コード例 #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
ファイル: Setting.cs プロジェクト: hong1990/ecommon
 public Setting()
 {
     TcpConfiguration = new TcpConfiguration();
 }