[fix] 优化tcp、udp架构 test

This commit is contained in:
wujiawei 2024-12-21 21:57:14 +08:00
parent fac28c4fc8
commit 9fa3359569
3 changed files with 1 additions and 6 deletions

View File

@ -1,7 +1,6 @@
package org.framework.lazy.cloud.network.heartbeat.client.netty.udp.filter; package org.framework.lazy.cloud.network.heartbeat.client.netty.udp.filter;
import io.netty.channel.ChannelPipeline; import io.netty.channel.ChannelPipeline;
import io.netty.channel.socket.SocketChannel;
import io.netty.channel.socket.nio.NioDatagramChannel; import io.netty.channel.socket.nio.NioDatagramChannel;
import io.netty.handler.codec.string.StringDecoder; import io.netty.handler.codec.string.StringDecoder;
import io.netty.handler.codec.string.StringEncoder; import io.netty.handler.codec.string.StringEncoder;

View File

@ -2,13 +2,9 @@ package org.framework.lazy.cloud.network.heartbeat.client.netty.udp.socket;
import io.netty.bootstrap.Bootstrap; import io.netty.bootstrap.Bootstrap;
import io.netty.buffer.Unpooled;
import io.netty.channel.*; import io.netty.channel.*;
import io.netty.channel.nio.NioEventLoopGroup; import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.DatagramPacket;
import io.netty.channel.socket.nio.NioDatagramChannel; import io.netty.channel.socket.nio.NioDatagramChannel;
import io.netty.channel.socket.nio.NioSocketChannel;
import io.netty.util.internal.SocketUtils;
import lombok.Getter; import lombok.Getter;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.framework.lazy.cloud.network.heartbeat.client.netty.NettyClientSocket; import org.framework.lazy.cloud.network.heartbeat.client.netty.NettyClientSocket;

View File

@ -12,7 +12,7 @@ spring:
client-id: wujiawei # 客户端ID client-id: wujiawei # 客户端ID
app-key: key app-key: key
app-secret: secret app-secret: secret
protocol-type: udp protocol-type: tcp
# inet-host: 124.222.48.62 # 服务端地址 # inet-host: 124.222.48.62 # 服务端地址
# inet-port: 30676 #服务端端口 # inet-port: 30676 #服务端端口
# # inet-path: wu-lazy-cloud-heartbeat-server # # inet-path: wu-lazy-cloud-heartbeat-server