HandleHello

public final class HandleHello
extends ChunkHandler

java.lang.Object
   ↳ com.android.tradefed.device.server.jdwp.JdwpInterceptor
     ↳ com.android.tradefed.device.server.jdwp.chunkhandler.ChunkHandler
       ↳ com.android.tradefed.device.server.jdwp.chunkhandler.HandleHello


Handle the "hello" chunk (HELO) and feature discovery.

Summary

Fields

public static final int CHUNK_FEAT

public static final int CHUNK_HELO

Public methods

void clientDisconnected(ClientImpl client)

Client went away.

void clientReady(ClientImpl client)

Client is ready.

void handleChunk(ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)

Chunk handler entry point.

static void register(MonitorThread mt)

Register for the packets we expect to get from the client.

static void sendFEAT(ClientImpl client)

Send a FEAT request to the client.

static void sendHELO(ClientImpl client, int serverProtocolVersion)

Send a HELO request to the client.

static void sendHelloCommands(ClientImpl client, int serverProtocolVersion)

Sends HELLO-type commands to the VM after a good handshake.

Fields

CHUNK_FEAT

public static final int CHUNK_FEAT

CHUNK_HELO

public static final int CHUNK_HELO

Public methods

clientDisconnected

public void clientDisconnected (ClientImpl client)

Client went away.

Parameters
client ClientImpl

clientReady

public void clientReady (ClientImpl client)

Client is ready.

Parameters
client ClientImpl

handleChunk

public void handleChunk (ClientImpl client, 
                int type, 
                ByteBuffer data, 
                boolean isReply, 
                int msgId)

Chunk handler entry point.

Parameters
client ClientImpl

type int

data ByteBuffer

isReply boolean

msgId int

register

public static void register (MonitorThread mt)

Register for the packets we expect to get from the client.

Parameters
mt MonitorThread

sendFEAT

public static void sendFEAT (ClientImpl client)

Send a FEAT request to the client.

Parameters
client ClientImpl

sendHELO

public static void sendHELO (ClientImpl client, 
                int serverProtocolVersion)

Send a HELO request to the client.

Parameters
client ClientImpl

serverProtocolVersion int

sendHelloCommands

public static void sendHelloCommands (ClientImpl client, 
                int serverProtocolVersion)

Sends HELLO-type commands to the VM after a good handshake.

Throws
IOException