Exemplo n.º 1
0
 public TcpTransport(TcpTransportConfiguration configuration, Identity identity, RoutingTable routingTable, PeerTable peerTable, InboundMessageDispatcher inboundMessageDispatcher, TcpRoutingContextContainer tcpRoutingContextContainer, PayloadUtils payloadUtils) {
    this.configuration = configuration;
    this.identity = identity;
    this.routingTable = routingTable;
    this.peerTable = peerTable;
    this.inboundMessageDispatcher = inboundMessageDispatcher;
    this.tcpRoutingContextContainer = tcpRoutingContextContainer;
    this.payloadUtils = payloadUtils;
 }
Exemplo n.º 2
0
 public TcpTransport(TcpTransportConfiguration configuration, Identity identity, RoutingTable routingTable, PeerTable peerTable, InboundMessageDispatcher inboundMessageDispatcher, TcpRoutingContextContainer tcpRoutingContextContainer, PayloadUtils payloadUtils)
 {
     this.configuration              = configuration;
     this.identity                   = identity;
     this.routingTable               = routingTable;
     this.peerTable                  = peerTable;
     this.inboundMessageDispatcher   = inboundMessageDispatcher;
     this.tcpRoutingContextContainer = tcpRoutingContextContainer;
     this.payloadUtils               = payloadUtils;
 }
 public TcpRoutingContext(TcpTransportConfiguration configuration, TcpRoutingContextContainer tcpRoutingContextContainer, Socket client, InboundMessageDispatcher inboundMessageDispatcher, Identity localIdentity, RoutingTable routingTable, PeerTable peerTable, PayloadUtils payloadUtils) {
    logger.Debug($"Constructing TcpRoutingContext for client {client.RemoteEndPoint}, localId: {localIdentity}");
    
    this.configuration = configuration;
    this.tcpRoutingContextContainer = tcpRoutingContextContainer;
    this.client = client;
    this.inboundMessageDispatcher = inboundMessageDispatcher;
    this.localIdentity = localIdentity;
    this.routingTable = routingTable;
    this.peerTable = peerTable;
    this.payloadUtils = payloadUtils;
    this.ns = new NetworkStream(client);
 }
Exemplo n.º 4
0
        public TcpRoutingContext(TcpTransportConfiguration configuration, TcpRoutingContextContainer tcpRoutingContextContainer, Socket client, InboundMessageDispatcher inboundMessageDispatcher, Identity localIdentity, RoutingTable routingTable, PeerTable peerTable, PayloadUtils payloadUtils)
        {
            logger.Debug($"Constructing TcpRoutingContext for client {client.RemoteEndPoint}, localId: {localIdentity}");

            this.configuration = configuration;
            this.tcpRoutingContextContainer = tcpRoutingContextContainer;
            this.client = client;
            this.inboundMessageDispatcher = inboundMessageDispatcher;
            this.localIdentity            = localIdentity;
            this.routingTable             = routingTable;
            this.peerTable    = peerTable;
            this.payloadUtils = payloadUtils;
            this.ns           = new NetworkStream(client);
        }
Exemplo n.º 5
0
 public TcpDebugMob(TcpRoutingContextContainer tcpRoutingContextContainer) {
    this.tcpRoutingContextContainer = tcpRoutingContextContainer;
 }
Exemplo n.º 6
0
 public TcpDebugMob(TcpRoutingContextContainer tcpRoutingContextContainer)
 {
     this.tcpRoutingContextContainer = tcpRoutingContextContainer;
 }