rexseeNetwork
返回手册目录
【函数】boolean isReady()
【说明】网络链接是否就绪。
【返回】true或false。
【参数】
【示例】
alert(rexseeNetwork.isReady());
运行示例

【函数】boolean ping(String pingUrl, int pingTimeout)
【说明】Ping某个地址,获得返回或超时时会触发事件onPingReturned。
【返回】true或false。
【参数】pingUrl:要ping的目标地址,例如“http://www.rexsee.com/index.php”。
pingTimeout:超时时间,秒数。
【示例】
rexseeNetwork.ping('/',30);
事件代码 运行示例

【函数】String getIpAddress()
【说明】获取本机IP地址。
【返回】IP地址。
【参数】
【示例】
alert(rexseeNetwork.getIpAddress());
运行示例

【函数】JsonArray getIpAddresses()
【说明】获取本机所有IP地址。
【返回】JSON数组,使用eval('('+json+')')转换为JavaScript数组。
【参数】
【示例】
alert(rexseeNetwork.getIpAddresses());
运行示例

【函数】String getLocalHostIpAddress()
【说明】读取LocalHostIP地址。
【返回】IP地址。
【参数】
【示例】
alert(rexseeNetwork.getLocalHostIpAddress());
运行示例

【函数】String getIpAddress(String host)
【说明】根据主机名读取IP地址。
【返回】IP地址。
【参数】host:主机名。
【示例】
alert(rexseeNetwork.getIpAddress('www.rexsee.com'));
运行示例

【函数】String getHostName()
【说明】获取本机域名。
【返回】域名。
【参数】
【示例】
alert(rexseeNetwork.getHostName());
运行示例

【函数】JsonArray getHostNames()
【说明】获取本机所有域名。
【返回】JSON数组,使用eval('('+json+')')转换为JavaScript数组。
【参数】
【示例】
alert(rexseeNetwork.getHostNames());
运行示例

【函数】String getHostName(String ip)
【说明】根据IP地址读取域名。
【返回】域名。
【参数】host:ip地址。
【示例】
alert(rexseeNetwork.getIpAddress('211.152.9.45'));
运行示例

【函数】JsonArray getDisplayNames()
【说明】获取本机所有主机名。
【返回】JSON数组,使用eval('('+json+')')转换为JavaScript数组。
【参数】
【示例】
alert(rexseeNetwork.getDisplayNames());
运行示例
返回手册目录