HandleExitpublic final class HandleExit extends ChunkHandler
Fields Summary |
---|
public static final int | CHUNK_EXIT | private static final HandleExit | mInst |
Constructors Summary |
---|
private HandleExit()
|
Methods Summary |
---|
public void | clientDisconnected(Client client)Client went away.
| public void | clientReady(Client client)Client is ready.
| public void | handleChunk(Client client, int type, java.nio.ByteBuffer data, boolean isReply, int msgId)Chunk handler entry point.
handleUnknownChunk(client, type, data, isReply, msgId);
| public static void | register(MonitorThread mt)Register for the packets we expect to get from the client.
| public static void | sendEXIT(Client client, int status)Send an EXIT request to the client.
ByteBuffer rawBuf = allocBuffer(4);
JdwpPacket packet = new JdwpPacket(rawBuf);
ByteBuffer buf = getChunkDataBuf(rawBuf);
buf.putInt(status);
finishChunkPacket(packet, CHUNK_EXIT, buf.position());
Log.d("ddm-exit", "Sending " + name(CHUNK_EXIT) + ": " + status);
client.sendAndConsume(packet, mInst);
|
|