跳到主要内容

connect

连接游戏服务器

声明

bool connect(string ip, int port)

参数

参数名描述
ip游戏服务器IP
port游戏服务器端口

返回值

true - 连接成功, false - 连接失败

使用方式

返回文档