Info Call to Socket API

Description

List of all calls to Server Socket API.

Recommendation

This entry is informative, no recommendations applicable.

Technical details

Method com.unity3d.services.ads.configuration.AdsModuleConfiguration.initModuleState() calling method java.net.URL.<init>()


    public boolean initModuleState(com.unity3d.services.core.configuration.Configuration p9)
    {
        int v5_0 = 1;
        com.unity3d.services.core.log.DeviceLog.debug("Unity Ads init: checking for ad blockers");
        try {
            String v0 = new java.net.URL(p9.getConfigUrl()).getHost();
            android.os.ConditionVariable v1_0 = new android.os.ConditionVariable();
            new com.unity3d.services.ads.configuration.AdsModuleConfiguration$1(this, v0, v1_0).start();
        } catch (java.net.MalformedURLException v2) {
            return v5_0;
        }
        if ((!v1_0.block(2000)) || ((this._address == null) || (!this._address.isLoopbackAddress()))) {
            return v5_0;
        } else {
            com.unity3d.services.core.log.DeviceLog.error("Unity Ads init: halting init because Unity Ads config resolves to loopback address (due to ad blocker?)");
            com.unity3d.ads.IUnityAdsListener v3 = com.unity3d.services.ads.properties.AdsProperties.getListener();
            if (v3 != null) {
                com.unity3d.services.core.misc.Utilities.runOnUiThread(new com.unity3d.services.ads.configuration.AdsModuleConfiguration$2(this, v3));
            }
            v5_0 = 0;
            return v5_0;
        }
    }

Method com.unity3d.services.core.request.WebRequest.<init>() calling method java.net.URL.<init>()


    public WebRequest(String p3, String p4, java.util.Map p5, int p6, int p7)
    {
        this._requestType = com.unity3d.services.core.request.WebRequest$RequestType.GET.name();
        this._responseCode = -1;
        this._contentLength = -1;
        this._canceled = 0;
        this._url = new java.net.URL(p3);
        this._requestType = p4;
        this._headers = p5;
        this._connectTimeout = p6;
        this._readTimeout = p7;
        return;
    }

Method com.unity3d.services.core.properties.SdkProperties.setConfigUrl() calling method java.net.URL.<init>()


    public static void setConfigUrl(String p2)
    {
        if (p2 != null) {
            if ((p2.startsWith("http://")) || (p2.startsWith("https://"))) {
                new java.net.URL(p2).toURI();
                com.unity3d.services.core.properties.SdkProperties._configUrl = p2;
                return;
            } else {
                throw new java.net.MalformedURLException();
            }
        } else {
            throw new java.net.MalformedURLException();
        }
    }