public interface AimServerReceiver extends WebSocketHandShake, SocksHandShake
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onByte(io.netty.channel.Channel ch,
io.netty.buffer.ByteBuf buf) |
void |
onClose(io.netty.channel.Channel ch,
ChannelClose heartbeat)
关闭连接通道
|
void |
onHandShaked(io.netty.channel.Channel ch) |
Reply |
onKick(io.netty.channel.Channel ch,
Session session)
处理互踢业务逻辑
|
void |
onPing(io.netty.channel.Channel ch)
收到客户端的Ping操作
|
void |
onRecive(io.netty.channel.Channel ch,
Sent msg)
接受消息
|
void |
onText(io.netty.channel.Channel ch,
String text)
客户端消息回调
|
onHandShakeonHandShakevoid onHandShaked(io.netty.channel.Channel ch)
void onPing(io.netty.channel.Channel ch)
void onText(io.netty.channel.Channel ch,
String text)
throws InterruptedException
text - InterruptedExceptionvoid onByte(io.netty.channel.Channel ch,
io.netty.buffer.ByteBuf buf)
throws IOException
IOExceptionvoid onRecive(io.netty.channel.Channel ch,
Sent msg)
msg - void onClose(io.netty.channel.Channel ch,
ChannelClose heartbeat)
ch - heartbeat - Copyright © 2020–2022 The AIM Project. All rights reserved.