예제 #1
0
파일: TCPTransport.cs 프로젝트: gwupe/Gwupe
 public TCPTransport(ITransportManager transportManager)
 {
     _transportManager = transportManager;
     transportManager.Inactive += delegate { CloseConnections(); };
     _tcpConnections = new TcpConnectionList();
     _listeningNamedTCPEndPoints = new Dictionary<String, NamedTCPListener>();
     _tcpConnectionHelper = new TCPConnectionHelper(this);
     _rand = new Random();
 }
예제 #2
0
 public TCPTransport(ITransportManager transportManager)
 {
     _transportManager           = transportManager;
     transportManager.Inactive  += delegate { CloseConnections(); };
     _tcpConnections             = new TcpConnectionList();
     _listeningNamedTCPEndPoints = new Dictionary <String, NamedTCPListener>();
     _tcpConnectionHelper        = new TCPConnectionHelper(this);
     _rand = new Random();
 }