Skip to content

Commit 29233f6

Browse files
committed
about implementing closed channels and introducing concept of asap management storage
1 parent 223adea commit 29233f6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/net/sharksystem/asap/MultiASAPEngineFS_Impl.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,13 @@ public void pushInterests(OutputStream os) throws IOException, ASAPException {
343343
ASAP_1_0 protocol = new ASAP_Modem_Impl();
344344

345345
System.out.println(this.getLogStart() + "start sending interest for each engine");
346+
347+
// in any case: issue an interest for management information first
348+
protocol.interest(this.owner, null, ASAP_1_0.ASAP_MANAGEMENT_FORMAT,null, -1, -1, os, false);
349+
346350
// issue an interest for each owner / format combination
347351
for(CharSequence format : this.folderMap.keySet()) {
352+
if(format.toString().equalsIgnoreCase(ASAP_1_0.ASAP_MANAGEMENT_FORMAT)) continue; // already send
348353
System.out.println(this.getLogStart() + "send interest for app/format: " + format);
349354
protocol.interest(this.owner, null, format,null, -1, -1, os, false);
350355
}

0 commit comments

Comments
 (0)