|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MessageManager
Manages peer message handling.
Field Summary | |
---|---|
static int |
STREAM_ENCRYPTION_NONE
|
static int |
STREAM_ENCRYPTION_RC4_PREFERRED
|
static int |
STREAM_ENCRYPTION_RC4_REQUIRED
|
Method Summary | |
---|---|
void |
cancelCompatiblePeersLocation(MessageManagerListener orig_listener)
Cancel registration for compatible-peer notification. |
void |
deregisterMessageType(Message message)
Remove registration of given message type from manager. |
void |
locateCompatiblePeers(PluginInterface plug_interface,
Message message,
MessageManagerListener listener)
Globally register for notification of peers that support the given message type. |
GenericMessageRegistration |
registerGenericMessageType(String type,
String description,
int stream_encryption,
GenericMessageHandler handler)
Register a peer-independent message handler |
void |
registerMessageType(Message message)
Register the given message type with the manager for processing. |
Field Detail |
---|
static final int STREAM_ENCRYPTION_NONE
static final int STREAM_ENCRYPTION_RC4_PREFERRED
static final int STREAM_ENCRYPTION_RC4_REQUIRED
Method Detail |
---|
void registerMessageType(Message message) throws MessageException
message
- instance to use for decoding
MessageException
- if this message type has already been registeredvoid deregisterMessageType(Message message)
message
- type to removevoid locateCompatiblePeers(PluginInterface plug_interface, Message message, MessageManagerListener listener)
plug_interface
- to get the download managermessage
- to matchlistener
- to notifyvoid cancelCompatiblePeersLocation(MessageManagerListener orig_listener)
orig_listener
- listener used for registrationGenericMessageRegistration registerGenericMessageType(String type, String description, int stream_encryption, GenericMessageHandler handler) throws MessageException
type
- description
- handler
-
MessageException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |