第十二届:TCP 服务器与客户端 一、TCP 服务器基础 1. 创建 TCP 服务器 默认配置创建 NetServer server = vertx.createNetServer(); // 使用默认配置(端口 0,随机端口) 指定端口与主机 NetServerOptions options =