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 | ||
处理“hello”块 (HELO) 和功能发现。
摘要
字段 | |
|---|---|
public
static
final
int |
CHUNK_FEAT
|
public
static
final
int |
CHUNK_HELO
|
公共方法 | |
|---|---|
void
|
clientDisconnected(ClientImpl client)
客户端已消失。 |
void
|
clientReady(ClientImpl client)
客户端已准备就绪。 |
void
|
handleChunk(ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)
块处理程序入口点。 |
static
void
|
register(MonitorThread mt)
注册我们预期会从客户端收到的数据包。 |
static
void
|
sendFEAT(ClientImpl client)
向客户端发送 FEAT 请求。 |
static
void
|
sendHELO(ClientImpl client, int serverProtocolVersion)
向客户端发送 HELO 请求。 |
static
void
|
sendHelloCommands(ClientImpl client, int serverProtocolVersion)
在成功握手后向虚拟机发送 HELLO 类型命令。 |
字段
CHUNK_FEAT
public static final int CHUNK_FEAT
CHUNK_HELO
public static final int CHUNK_HELO
公共方法
handleChunk
public void handleChunk (ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)
块处理程序入口点。
| 参数 | |
|---|---|
client |
ClientImpl |
type |
int |
data |
ByteBuffer |
isReply |
boolean |
msgId |
int |
sendHELO
public static void sendHELO (ClientImpl client, int serverProtocolVersion)
向客户端发送 HELO 请求。
| 参数 | |
|---|---|
client |
ClientImpl |
serverProtocolVersion |
int |
sendHelloCommands
public static void sendHelloCommands (ClientImpl client, int serverProtocolVersion)
在成功握手后向虚拟机发送 HELLO 类型命令。
| 抛出 | |
|---|---|
|
IOException |