/// <summary> /// Create a new Node for communication with an NDN hub with the given /// Transport object and connectionInfo. /// </summary> /// /// <param name="transport">A Transport object used for communication.</param> /// <param name="connectionInfo"></param> public Node(Transport transport, Transport.ConnectionInfo connectionInfo) { this.pendingInterestTable_ = new PendingInterestTable(); this.interestFilterTable_ = new InterestFilterTable(); this.registeredPrefixTable_ = new RegisteredPrefixTable( interestFilterTable_); this.delayedCallTable_ = new DelayedCallTable(); this.onConnectedCallbacks_ = ILOG.J2CsMapping.Collections.Collections .synchronizedList(new ArrayList()); this.commandInterestGenerator_ = new CommandInterestGenerator(); this.timeoutPrefix_ = new Name("/local/timeout"); this.lastEntryIdLock_ = new Object(); this.connectStatus_ = net.named_data.jndn.Node.ConnectStatus.UNCONNECTED; transport_ = transport; connectionInfo_ = connectionInfo; }
/// <summary> /// Create a new RegisteredPrefixTable with an empty table. /// </summary> /// /// <param name="interestFilterTable"></param> public RegisteredPrefixTable(InterestFilterTable interestFilterTable) { this.table_ = new ArrayList <Entry>(); this.removeRequests_ = new ArrayList <Int64>(); interestFilterTable_ = interestFilterTable; }
/// <summary> /// Create a new RegisteredPrefixTable with an empty table. /// </summary> /// /// <param name="interestFilterTable"></param> public RegisteredPrefixTable(InterestFilterTable interestFilterTable) { this.table_ = new ArrayList<Entry>(); this.removeRequests_ = new ArrayList<Int64>(); interestFilterTable_ = interestFilterTable; }