|
@@ -14,6 +14,8 @@ import io.netty.channel.nio.NioEventLoopGroup; |
|
|
import io.netty.channel.socket.nio.NioServerSocketChannel; |
|
|
import io.netty.channel.socket.nio.NioServerSocketChannel; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
|
|
|
|
|
|
|
import java.net.InetSocketAddress; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @program: DipperPositionServer |
|
|
* @program: DipperPositionServer |
|
|
* @description: 北斗定位 |
|
|
* @description: 北斗定位 |
|
@@ -153,8 +155,7 @@ public class DipperPositionServer { |
|
|
EventLoopGroup mainThreadGroup = new NioEventLoopGroup(1); |
|
|
EventLoopGroup mainThreadGroup = new NioEventLoopGroup(1); |
|
|
//new 一个工作线程组 |
|
|
//new 一个工作线程组 |
|
|
EventLoopGroup workThreadGroup = new NioEventLoopGroup(200); |
|
|
EventLoopGroup workThreadGroup = new NioEventLoopGroup(200); |
|
|
//InetSocketAddress socketAddress = new InetSocketAddress(serverAddr, |
|
|
|
|
|
// starsAsycPort); |
|
|
|
|
|
|
|
|
//InetSocketAddress socketAddress = new InetSocketAddress(serverAddr,null); |
|
|
ServerBootstrap bootstrap = new ServerBootstrap() |
|
|
ServerBootstrap bootstrap = new ServerBootstrap() |
|
|
.group(mainThreadGroup, workThreadGroup) |
|
|
.group(mainThreadGroup, workThreadGroup) |
|
|
.channel(NioServerSocketChannel.class) |
|
|
.channel(NioServerSocketChannel.class) |
|
|