Package | Description |
---|---|
ethernet |
Modifier and Type | Field and Description |
---|---|
protected Message.MessageType |
Message.type |
Modifier and Type | Field and Description |
---|---|
private java.util.HashMap<Message.MessageType,java.util.ArrayList<MultiPeerListener>> |
MultiPeer.specificListeners |
Modifier and Type | Method and Description |
---|---|
Message.MessageType |
Message.getType() |
static Message.MessageType |
Message.MessageType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Message.MessageType[] |
Message.MessageType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
MultiPeer.addSpecificListener(Message.MessageType type,
MultiPeerListener obj)
Add a "MultiPeerListener" that will be called-back only when arrives
a message of a specific type.
|
void |
MultiPeer.removeSpecificListener(Message.MessageType type,
MultiPeerListener obj) |