跳过导航链接
B C D E G I M N S 

B

BeforeBytesDecoder - cn.foxtech.common.utils.netty.handler中的类
拆包和沾包的预处理:解决TCP 拆包和沾包的问题
BeforeBytesDecoder() - 类 的构造器cn.foxtech.common.utils.netty.handler.BeforeBytesDecoder
 
bind(int) - 类 中的方法cn.foxtech.common.utils.netty.server.tcp.NettyTcpServer
 
bind(int) - 类 中的方法cn.foxtech.common.utils.netty.server.udp.NettyUdpServer
 
BytesToByteDecoder - cn.foxtech.common.utils.netty.handler中的类
接收文解码器:将上一环节生成的ByteBuf,转换成byte[]给下一环节处理。
BytesToByteDecoder() - 类 的构造器cn.foxtech.common.utils.netty.handler.BytesToByteDecoder
 
BytesToByteEncoder - cn.foxtech.common.utils.netty.handler中的类
发送报文编码器:将上一环节生成的byte[],转换成ByteBuf给下一环节处理。
BytesToByteEncoder() - 类 的构造器cn.foxtech.common.utils.netty.handler.BytesToByteEncoder
 

C

channelActive(ChannelHandlerContext) - 类 中的方法cn.foxtech.common.utils.netty.handler.ChannelInboundHandler
客户端与服务端第一次建立连接时 执行
channelActive(ChannelHandlerContext) - 类 中的方法cn.foxtech.common.utils.netty.handler.SocketChannelHandler
客户端与服务端建立连接成功时,触发该动作
channelInactive(ChannelHandlerContext) - 类 中的方法cn.foxtech.common.utils.netty.handler.ChannelInboundHandler
客户端与服务端 断连时 执行
channelInactive(ChannelHandlerContext) - 类 中的方法cn.foxtech.common.utils.netty.handler.SocketChannelHandler
客户端与服务端 断连时 执行
ChannelInboundHandler - cn.foxtech.common.utils.netty.handler中的类
 
ChannelInboundHandler() - 类 的构造器cn.foxtech.common.utils.netty.handler.ChannelInboundHandler
 
channelRead0(ChannelHandlerContext, Object) - 类 中的方法cn.foxtech.common.utils.netty.handler.ChannelInboundHandler
从客户端收到新的数据时,这个方法会在收到消息时被调用
channelRead0(ChannelHandlerContext, Object) - 类 中的方法cn.foxtech.common.utils.netty.handler.SocketChannelHandler
从客户端收到新的数据时,这个方法会在收到消息时被调用
channelRead0(ChannelHandlerContext, DatagramPacket) - 类 中的方法cn.foxtech.common.utils.netty.server.udp.NettyUdpServerHandler
接收到UDP报文 注意:UDP的地址信息,不在ctx,而是在msg这边
cn.foxtech.common.utils.netty.client.tcp - 程序包 cn.foxtech.common.utils.netty.client.tcp
 
cn.foxtech.common.utils.netty.handler - 程序包 cn.foxtech.common.utils.netty.handler
 
cn.foxtech.common.utils.netty.server.tcp - 程序包 cn.foxtech.common.utils.netty.server.tcp
 
cn.foxtech.common.utils.netty.server.udp - 程序包 cn.foxtech.common.utils.netty.server.udp
 
createClient(SocketAddress) - 类 中的方法cn.foxtech.common.utils.netty.client.tcp.NettyTcpClientFactory
 
createClient(String, int) - 类 中的方法cn.foxtech.common.utils.netty.client.tcp.NettyTcpClientFactory
 
createServer(int, SplitMessageHandler, SocketChannelHandler) - 类 中的静态方法cn.foxtech.common.utils.netty.server.tcp.NettyTcpServer
创建一个TCP SERVER实例
createServer(int, ChannelInitializer) - 类 中的静态方法cn.foxtech.common.utils.netty.server.tcp.NettyTcpServer
创建一个TCP SERVER实例
createServer(int, SocketChannelHandler) - 类 中的静态方法cn.foxtech.common.utils.netty.server.udp.NettyUdpServer
创建一个UDP SERVER实例

D

decode(ChannelHandlerContext, ByteBuf, List<Object>) - 类 中的方法cn.foxtech.common.utils.netty.handler.BeforeBytesDecoder
对原始流进行完整帧的检查 这是一个同步函数,避免并发的时候,产生多线程的问题。
decode(ChannelHandlerContext, ByteBuf, List<Object>) - 类 中的方法cn.foxtech.common.utils.netty.handler.BytesToByteDecoder
 

E

encode(ChannelHandlerContext, byte[], ByteBuf) - 类 中的方法cn.foxtech.common.utils.netty.handler.BytesToByteEncoder
 
exceptionCaught(ChannelHandlerContext, Throwable) - 类 中的方法cn.foxtech.common.utils.netty.handler.ChannelInboundHandler
当出现 Throwable 对象才会被调用,即当 Netty 由于 IO 错误或者处理器在处理事件时抛出的异常时
exceptionCaught(ChannelHandlerContext, Throwable) - 类 中的方法cn.foxtech.common.utils.netty.handler.SocketChannelHandler
当出现 Throwable 对象才会被调用,即当 Netty 由于 IO 错误或者处理器在处理事件时抛出的异常时
exceptionCaught(ChannelHandlerContext, Throwable) - 类 中的方法cn.foxtech.common.utils.netty.server.udp.NettyUdpServerHandler
 

G

getInstance() - 类 中的静态方法cn.foxtech.common.utils.netty.client.tcp.NettyTcpClientFactory
 

I

initChannel(NioSocketChannel) - 类 中的方法cn.foxtech.common.utils.netty.client.tcp.NettyTcpClientInitializer
 
initChannel(Channel) - 类 中的方法cn.foxtech.common.utils.netty.server.tcp.NettyTcpChannelInitializer
 
initChannel(Channel) - 类 中的方法cn.foxtech.common.utils.netty.server.tcp.NettyTcpOriginalChannelInitializer
 

M

main(String[]) - 类 中的静态方法cn.foxtech.common.utils.netty.client.tcp.NettyTcpClientFactory
 

N

NettyTcpChannelInitializer<SocketChannel> - cn.foxtech.common.utils.netty.server.tcp中的类
通道初始化
NettyTcpChannelInitializer() - 类 的构造器cn.foxtech.common.utils.netty.server.tcp.NettyTcpChannelInitializer
 
NettyTcpClientFactory - cn.foxtech.common.utils.netty.client.tcp中的类
Netty客户端工厂:创建异步连接
NettyTcpClientInitializer - cn.foxtech.common.utils.netty.client.tcp中的类
 
NettyTcpClientInitializer() - 类 的构造器cn.foxtech.common.utils.netty.client.tcp.NettyTcpClientInitializer
 
NettyTcpOriginalChannelInitializer<SocketChannel> - cn.foxtech.common.utils.netty.server.tcp中的类
通道初始化
NettyTcpOriginalChannelInitializer() - 类 的构造器cn.foxtech.common.utils.netty.server.tcp.NettyTcpOriginalChannelInitializer
 
NettyTcpServer - cn.foxtech.common.utils.netty.server.tcp中的类
netty的server 参考文章:https://blog.csdn.net/zwj1030711290/article/details/131590141
NettyTcpServer() - 类 的构造器cn.foxtech.common.utils.netty.server.tcp.NettyTcpServer
 
NettyUdpServer - cn.foxtech.common.utils.netty.server.udp中的类
 
NettyUdpServer() - 类 的构造器cn.foxtech.common.utils.netty.server.udp.NettyUdpServer
 
NettyUdpServerHandler - cn.foxtech.common.utils.netty.server.udp中的类
UDP Server Handler Class
NettyUdpServerHandler() - 类 的构造器cn.foxtech.common.utils.netty.server.udp.NettyUdpServerHandler
 

S

SocketChannelHandler - cn.foxtech.common.utils.netty.handler中的类
 
SocketChannelHandler() - 类 的构造器cn.foxtech.common.utils.netty.handler.SocketChannelHandler
 
B C D E G I M N S 
跳过导航链接

Copyright © 2023. All rights reserved.