示例#1
0
 internal Peer(IConnection connection)
 {
     _connection                 = connection;
     _sendSpeedWatcher           = new SpeedWatcher();
     _receiveSpeedWatcher        = new SpeedWatcher();
     _receiveBandwidthController = new UnlimitedBandwidthController();
     _sendBandwidthController    = new UnlimitedBandwidthController();
     _statistics                 = new PeerStat();
     _uri = new Uri("tcp://" + EndPoint.Address + ':' + EndPoint.Port);
 }
示例#2
0
 internal Peer(IConnection connection)
 {
     _connection = connection;
     _sendSpeedWatcher = new SpeedWatcher();
     _receiveSpeedWatcher = new SpeedWatcher();
     _receiveBandwidthController = new UnlimitedBandwidthController();
     _sendBandwidthController = new UnlimitedBandwidthController();
     _statistics = new PeerStat();
     _uri = new Uri("tcp://" + EndPoint.Address + ':' + EndPoint.Port);
 }