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

Method sendMessage

routing/MessageRouter.java:291–299  ·  view source on GitHub ↗

Start sending a message to another host. @param id Id of the message to send @param to The host to send the message to

(String id, DTNHost to)

Source from the content-addressed store, hash-verified

289 * @param to The host to send the message to
290 */
291 public void sendMessage(String id, DTNHost to) {
292 Message m = getMessage(id);
293 Message m2;
294 if (m == null) throw new SimError("no message for id " +
295 id + " to send at " + this.host);
296
297 m2 = m.replicate(); // send a replicate of the message
298 to.receiveMessage(m2, this.host);
299 }
300
301 /**
302 * Requests for deliverable message from this router to be sent trough a

Callers

nothing calls this directly

Calls 3

getMessageMethod · 0.95
replicateMethod · 0.95
receiveMessageMethod · 0.45

Tested by

no test coverage detected