public class DdmServer extends Object
Modifier and Type | Field and Description |
---|---|
static int |
CLIENT_PROTOCOL_VERSION |
Modifier and Type | Method and Description |
---|---|
static void |
registerHandler(int type,
ChunkHandler handler)
Register an instance of the ChunkHandler class to handle a specific
chunk type.
|
static void |
registrationComplete()
The application must call here after it finishes registering
handlers.
|
static void |
sendChunk(Chunk chunk)
Send a chunk of data to the DDM server.
|
static ChunkHandler |
unregisterHandler(int type)
Unregister the existing handler for the specified type.
|
public static final int CLIENT_PROTOCOL_VERSION
public static void registerHandler(int type, ChunkHandler handler)
public static ChunkHandler unregisterHandler(int type)
public static void registrationComplete()
public static void sendChunk(Chunk chunk)