|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--de.tubs.macs.util.net.LRMP
LRMP Network System.
This is a reliable multicast system.
There are some limitiations:
| Field Summary | |
static boolean |
debug
|
static int |
DEFAULT_BANDWIDTH
|
static int |
DEFAULT_TTL
|
| Fields inherited from interface inria.net.lrmp.LrmpEventHandler |
END_OF_SEQUENCE,
UNRECOVERABLE_SEQUENCE_ERROR |
| Constructor Summary | |
LRMP(java.lang.String typeID,
NetManager netManager)
|
|
| Method Summary | |
void |
close()
close the network |
void |
flush()
send all available data |
NetAddress |
getAddress()
get the NetAddress of this Net |
java.lang.Object |
getOptions()
get the options |
int |
getTTL()
return the scope of the Network in form of a TTL. |
java.lang.String |
getType()
return the type id of the Network |
void |
init(NetReceiver receiver,
NetAddress netGroup)
Init the Network. After calling this method, object can be sent to all instances using the same group and received object from other instances will be forwarded to the NetReceiver. |
void |
processData(inria.net.lrmp.LrmpPacket packet)
|
void |
processEvent(int event,
java.lang.Object obj)
|
void |
seedHack()
ugly address hack for applications in a session |
boolean |
send(java.lang.Object object)
send an Object to the Network |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final boolean debug
public static final int DEFAULT_TTL
public static final int DEFAULT_BANDWIDTH
| Constructor Detail |
public LRMP(java.lang.String typeID,
NetManager netManager)
| Method Detail |
public java.lang.String getType()
public int getTTL()
public void init(NetReceiver receiver,
NetAddress netGroup)
throws NetException
Options will be taken from the group
reciever - will receive object from this netgroup - the group to create or to join join
public void flush()
throws NetException
public void close()
throws NetException
public boolean send(java.lang.Object object)
throws NetException
object - the object to send
public NetAddress getAddress()
throws NetException
public java.lang.Object getOptions()
public void processData(inria.net.lrmp.LrmpPacket packet)
public void processEvent(int event,
java.lang.Object obj)
public void seedHack()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||