服务端 @Configuration public class NettySocketConfig { private static final Logger logger = LoggerFactory.getLogger(NettySocketConfig.class); @Bean public SocketIOServer socketIOServer() { //创建Socket,并设置监听端口 com.corundumstudio.socketio.Configuration con
我的以Netty Socket编程的代码为例, 1.EventLoopGroup 进入EventLoopGroup,这是一个特殊的EventExecutorGroup,在事件循环中,在selection选择的时候,可以注册Channel.(Channel可以理解为跟客户端的连接) /** * Special {@link EventExecutorGroup} which allows registering {@link Channel}s that get * processed for l
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # t