Security.PrefetchSocketPolicy 预读套接字策略
static function PrefetchSocketPolicy (ip : string, atPort : int, timeout : int = 3000) : bool
Description描述
Prefetch the webplayer socket security policy from a non-default port number.
从一个非默认端口号,预读网络播放器套接字安全策略。
Socket connections attempted in a webplayer need to be validated by a socket policy. When the policy is hosted on a port different than the default port number (843) it needs to be explicitly fetched with this API call before any socket connections are attempted. The timeout argument is in milliseconds. The return value indicates if a policy was successfully retrieved or not. See more about the webplayer security sandbox in the manual.
在网络播放器试图Socket(套接字)连接,需要通过套接字策略验证。当策略托管在一个不同的端口而不是默认的端口(843)时,它需要显式获取,用于这个API调用之前,套接字尝试连接。timeout是以毫秒为单位。返回值表示,策略是否成功检索或没有。