mirror of
https://gitee.com/wujiawei1207537021/wu-lazy-cloud-network.git
synced 2025-06-06 13:27:55 +08:00
[fix] 优化tcp、udp架构 test
This commit is contained in:
parent
fac28c4fc8
commit
9fa3359569
@ -1,7 +1,6 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.client.netty.udp.filter;
|
||||
|
||||
import io.netty.channel.ChannelPipeline;
|
||||
import io.netty.channel.socket.SocketChannel;
|
||||
import io.netty.channel.socket.nio.NioDatagramChannel;
|
||||
import io.netty.handler.codec.string.StringDecoder;
|
||||
import io.netty.handler.codec.string.StringEncoder;
|
||||
|
@ -2,13 +2,9 @@ package org.framework.lazy.cloud.network.heartbeat.client.netty.udp.socket;
|
||||
|
||||
|
||||
import io.netty.bootstrap.Bootstrap;
|
||||
import io.netty.buffer.Unpooled;
|
||||
import io.netty.channel.*;
|
||||
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.NioSocketChannel;
|
||||
import io.netty.util.internal.SocketUtils;
|
||||
import lombok.Getter;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.framework.lazy.cloud.network.heartbeat.client.netty.NettyClientSocket;
|
||||
|
@ -12,7 +12,7 @@ spring:
|
||||
client-id: wujiawei # 客户端ID
|
||||
app-key: key
|
||||
app-secret: secret
|
||||
protocol-type: udp
|
||||
protocol-type: tcp
|
||||
# inet-host: 124.222.48.62 # 服务端地址
|
||||
# inet-port: 30676 #服务端端口
|
||||
# # inet-path: wu-lazy-cloud-heartbeat-server
|
||||
|
Loading…
x
Reference in New Issue
Block a user