public DirectResponder(Dispatcher dispatcher, PeerBean peerBeanMaster, ChannelHandlerContext ctx, Message.Message requestMessage)
 {
     _dispatcher = dispatcher;
     _peerBeanMaster = peerBeanMaster;
     _ctx = ctx;
     _requestMessage = requestMessage;
 }
Beispiel #2
0
 public Sender(Number160 peerId, IList<IPeerStatusListener> peerStatusListeners,
     ChannelClientConfiguration channelClientConfiguration, Dispatcher dispatcher)
 {
     _peerStatusListeners = peerStatusListeners;
     ChannelClientConfiguration = channelClientConfiguration;
     _dispatcher = dispatcher;
     _random = new InteropRandom((ulong)peerId.GetHashCode());
 }
Beispiel #3
0
 /// <summary>
 /// The connection bean with unmodifiable objects. Once it is set, it cannot be changed.
 /// If it is required to change, then the peer must be shut down and a new one created.
 /// </summary>
 /// <param name="p2PId">The P2P ID.</param>
 /// <param name="dispatcher">The dispatcher object that receives all messages.</param>
 /// <param name="sender">The sender object that sends out messages.</param>
 /// <param name="channelServer">The channel server that listens on incoming connections.</param>
 /// <param name="reservation">The connection reservation that is responsible for resource management.</param>
 /// <param name="resourceConfiguration">The configuration that is responsible for the resource numbers.</param>
 /// <param name="timer">The timer for the discovery process.</param>
 public ConnectionBean(int p2PId, Dispatcher dispatcher, Sender sender, ChannelServer channelServer,
     Reservation reservation, ChannelClientConfiguration resourceConfiguration, ExecutorService timer)
 {
     P2PId = p2PId;
     Dispatcher = dispatcher;
     Sender = sender;
     ChannelServer = channelServer;
     Reservation = reservation;
     ResourceConfiguration = resourceConfiguration;
     Timer = timer;
 }