摘要: DotNetty 资料较少,UdpClient 和 TcpClient 略有不同 public class UdpCommunicator : ICommunicator { private IChannel? _ClientChannel; private Bootstrap? _Bootstra 阅读全文
posted @ 2024-02-04 15:25 cchong005 阅读(74) 评论(0) 推荐(0) 编辑
摘要: .net 里 Netty 资料不多,做个记录 public class NetworkCommunicator : ICommunicator { #region Netty 本来想用静态,后来觉得多个client公用一个netty可能分不清返回的数据, 先这样,后期要是吃资源再优化 Bootstr 阅读全文
posted @ 2024-02-04 15:24 cchong005 阅读(52) 评论(0) 推荐(0) 编辑