MCPcopy Create free account
hub / github.com/akeranen/the-one / removeFromIncomingBuffer

Method removeFromIncomingBuffer

routing/MessageRouter.java:406–408  ·  view source on GitHub ↗

Removes and returns a message with a certain ID from the incoming messages buffer or null if such message wasn't found. @param id ID of the message @param from The host that sent this message (previous hop) @return The found message or null if such message wasn't found

(String id, DTNHost from)

Source from the content-addressed store, hash-verified

404 * @return The found message or null if such message wasn't found
405 */
406 protected Message removeFromIncomingBuffer(String id, DTNHost from) {
407 return this.incomingMessages.remove(id + "_" + from.toString());
408 }
409
410 /**
411 * Returns true if a message with the given ID is one of the

Callers 2

messageTransferredMethod · 0.95
messageAbortedMethod · 0.95

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected