public void expressHintInterest(Name.Component excludeComp = null) { Name hintName = new Name(prefix); hintName.append(this.getStartTimeComponent()).append(producerNameComponents.trackHint); Interest hintInterest = new Interest(hintName); if (excludeComp != null) { Exclude exclude = new Exclude(); exclude.appendAny(); // Debug.Log (" excluding hint num " + excludeComp.toNumber ()); exclude.appendComponent(excludeComp); hintInterest.setExclude(exclude); } hintInterest.setMustBeFresh(true); hintInterest.setInterestLifetimeMilliseconds(config.defaultHintLifetime); hintInterest.setChildSelector(1); HintHandler handler = new HintHandler(this); FaceSingleton.getFace().expressInterest(hintInterest, handler, handler); }
//fetchTrack public void expressInterestForTrack(string trackID, Name.Component excludeComp = null) { Name trackName = new Name(prefix); trackName.append(startTimeComponent).append(producerNameComponents.tracks).append(trackID); //.append ("0"); Interest trackInterest = new Interest(trackName); if (excludeComp != null) { Exclude exclude = new Exclude(); exclude.appendAny(); exclude.appendComponent(excludeComp); trackInterest.setExclude(exclude); } trackInterest.setMustBeFresh(true); trackInterest.setChildSelector(1); TrackHandler handler = new TrackHandler(this); FaceSingleton.getFace().expressInterest(trackInterest, handler, handler); }