|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Transport
This interface represents a generic transport protocol, used to
send messages through the underlying network. Generally, transport
protocols use EDSimulator to schedule the delivery of
messages with some appropriate delay. They can also model message omission
failure as well.
| Method Summary | |
|---|---|
long |
getLatency(Node src,
Node dest)
Return a latency estimate from node src to protocol
pid of node dst. |
void |
send(Node src,
Node dest,
java.lang.Object msg,
int pid)
Sends message msg from node src to protocol
pid of node dst. |
| Methods inherited from interface peersim.core.Protocol |
|---|
clone |
| Method Detail |
|---|
void send(Node src,
Node dest,
java.lang.Object msg,
int pid)
msg from node src to protocol
pid of node dst.
src - sender nodedest - destination nodemsg - message to be sentpid - protocol identifier
long getLatency(Node src,
Node dest)
src to protocol
pid of node dst.
src - sender nodedest - destination node
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||