| 程序包 | 说明 |
|---|---|
| me.hekr.iotos.softgateway.network.tcp | |
| me.hekr.iotos.softgateway.network.tcp.listener |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> TcpServerConnectionContext<T> |
TcpServerConnectionContext.wrap(io.netty.channel.ChannelHandlerContext ctx) |
static <T> TcpServerConnectionContext<T> |
TcpServerConnectionContext.wrap(io.netty.channel.ChannelHandlerContext ctx,
InetSocketAddress remoteAddress) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
TcpServer.writeAndFlush(TcpServerConnectionContext<T> ctx,
T msg) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
EventListener.exceptionCaught(TcpServerConnectionContext<T> ctx,
Throwable t)
异常处理
|
void |
EventListenerAdapter.exceptionCaught(TcpServerConnectionContext<T> ctx,
Throwable t) |
void |
EventListener.onConnect(TcpServerConnectionContext<T> ctx)
客户端与服务端建立连接
|
void |
EventListenerAdapter.onConnect(TcpServerConnectionContext<T> ctx) |
void |
EventListener.onDisconnect(TcpServerConnectionContext<T> ctx,
CloseReason reason)
客户端与服务端断开连接
|
void |
EventListenerAdapter.onDisconnect(TcpServerConnectionContext<T> ctx,
CloseReason reason) |
void |
EventListener.onHeartbeatTimeout(TcpServerConnectionContext<T> ctx,
java.time.LocalDateTime lastOccurTime,
int count)
* 客户端不活跃(超过了设定的心跳超时时间)
|
void |
EventListenerAdapter.onHeartbeatTimeout(TcpServerConnectionContext<T> ctx,
java.time.LocalDateTime lastOccurTime,
int count) |
Copyright © 2023. All rights reserved.