IsConnected
IsConnected
检查客户端终端与服务器之间的连接情况。
bool IsConnected();返回值
如果成功建立了与服务器的连接,则返回true;否则,返回false。
示例:
if(!IsConnected())
{
Print("No connection!");
return(0);
}
// Expert body that needs the connection opened
// ...
最后更新于