private void CancelServerQuery()
 {
     if (m_ServerQuery != HServerQuery.Invalid)
     {
         SteamMatchmakingServers.CancelServerQuery(m_ServerQuery);
         m_ServerQuery = HServerQuery.Invalid;
         print("SteamMatchmakingServers.CancelServerQuery(m_ServerQuery)");
     }
 }
    public void OnEnable()
    {
        m_ServerListRequest = HServerListRequest.Invalid;
        m_ServerQuery       = HServerQuery.Invalid;

        m_ServerListResponse = new ISteamMatchmakingServerListResponse(OnServerResponded, OnServerFailedToRespond, OnRefreshComplete);
        m_PingResponse       = new ISteamMatchmakingPingResponse(OnServerResponded, OnServerFailedToRespond);
        m_PlayersResponse    = new ISteamMatchmakingPlayersResponse(OnAddPlayerToList, OnPlayersFailedToRespond, OnPlayersRefreshComplete);
        m_RulesResponse      = new ISteamMatchmakingRulesResponse(OnRulesResponded, OnRulesFailedToRespond, OnRulesRefreshComplete);
    }
        public IServerInfoRequestHandle requestServerInfo(uint ip, ushort port, ServerInfoRequestReadyCallback callback)
        {
            SteamworksServerInfoRequestHandle steamworksServerInfoRequestHandle = new SteamworksServerInfoRequestHandle(callback);
            ISteamMatchmakingPingResponse     steamMatchmakingPingResponse      = new ISteamMatchmakingPingResponse(new ISteamMatchmakingPingResponse.ServerResponded(steamworksServerInfoRequestHandle.onServerResponded), new ISteamMatchmakingPingResponse.ServerFailedToRespond(steamworksServerInfoRequestHandle.onServerFailedToRespond));

            steamworksServerInfoRequestHandle.pingResponse = steamMatchmakingPingResponse;
            HServerQuery query = SteamMatchmakingServers.PingServer(ip, port + 1, steamMatchmakingPingResponse);

            steamworksServerInfoRequestHandle.query = query;
            SteamworksMatchmakingService.serverInfoRequestHandles.Add(steamworksServerInfoRequestHandle);
            return(steamworksServerInfoRequestHandle);
        }
        public List <string> GetPlayers()
        {
            if (cancellation.IsCancellationRequested)
            {
                return(players);
            }

            query = SteamMatchmakingServers.PlayerDetails(ip, (ushort)(port + 1), playersResponse);
            WaitHandle.WaitAny(new WaitHandle[] { reset, cancellation.WaitHandle });
            StopRequest();
            return(players);
        }
        private IEnumerator DelayedServerInviteReceived(uint ip, ushort port)
        {
            this.QueryingIp = ip;
            ISteamMatchmakingPingResponse response = new ISteamMatchmakingPingResponse(new ISteamMatchmakingPingResponse.ServerResponded(this.ServerResponded), new ISteamMatchmakingPingResponse.ServerFailedToRespond(this.ServerFailedToRespond1));
            HServerQuery query = SteamMatchmakingServers.PingServer(ip, port, response);

            while (SteamClientDSConfig.Server == null)
            {
                if (string.IsNullOrEmpty(this.invitedToIP))
                {
                    yield break;
                }
                yield return(null);
            }
            yield return(YieldPresets.WaitPointFiveSeconds);

            Debug.Log("Received DS invite for server name='" + SteamClientDSConfig.Server.GetServerName() + "'");
            this._inviteReceivedScreen._continueSaveButton.isEnabled = SaveSlotUtils.GetPreviouslyPlayedServers().Contains(SteamClientDSConfig.Guid);
            this._inviteReceivedScreen._gameName.text = SteamClientDSConfig.Server.GetServerName();
            this._inviteReceivedScreen._screen.SetActive(true);
            this._menu.SetActive(false);
            UICamera.hoveredObject = null;
            yield break;
        }
Beispiel #6
0
 public override void AttemptConnect(string ip, ushort port, string password)
 {
     CleanupServerQuery();
     _serverQuery = SteamMatchmakingServers.PingServer(SteamworksCommon.GetUInt32FromIp(ip), (ushort)(port + 1), _serverPingResponse);
 }
		/// <summary>
		/// <para> Cancel an outstanding Ping/Players/Rules query from above.  You should call this to cancel</para>
		/// <para> any in-progress requests before destructing a callback object that may have been passed</para>
		/// <para> to one of the above calls to avoid crashing when callbacks occur.</para>
		/// </summary>
		public static void CancelServerQuery(HServerQuery hServerQuery) {
			InteropHelp.TestIfAvailableClient();
			NativeMethods.ISteamMatchmakingServers_CancelServerQuery(hServerQuery);
		}
		public static extern void ISteamMatchmakingServers_CancelServerQuery(HServerQuery hServerQuery);
 internal void CancelServerQuery(HServerQuery hServerQuery)
 {
     _CancelServerQuery(Self, hServerQuery);
 }
 private static extern void _CancelServerQuery(IntPtr self, HServerQuery hServerQuery);
Beispiel #11
0
    public void RenderOnGUI()
    {
        GUILayout.BeginArea(new Rect(Screen.width - 120, 0, 120, Screen.height));
        GUILayout.Label("Variables:");
        GUILayout.Label("m_ServerListRequest: " + m_ServerListRequest);
        GUILayout.Label("m_ServerQuery: " + m_ServerQuery);
        GUILayout.EndArea();

        if (GUILayout.Button("RequestInternetServerList(new AppId_t(440), filters, (uint)filters.Length, m_ServerListResponse)"))
        {
            ReleaseRequest();

            MatchMakingKeyValuePair_t[] filters = new MatchMakingKeyValuePair_t[1];
            filters[0].m_szKey   = "map";
            filters[0].m_szValue = "cp_granary";

            m_ServerListRequest = SteamMatchmakingServers.RequestInternetServerList(new AppId_t(440), filters, (uint)filters.Length, m_ServerListResponse);
            print("SteamMatchmakingServers.RequestInternetServerList(" + new AppId_t(440) + ", filters, (uint)filters.Length, m_ServerListResponse) : " + m_ServerListRequest);
        }

        if (GUILayout.Button("RequestLANServerList(new AppId_t(440), m_ServerListResponse)"))
        {
            ReleaseRequest();
            m_ServerListRequest = SteamMatchmakingServers.RequestLANServerList(new AppId_t(440), m_ServerListResponse);;
            print("SteamMatchmakingServers.RequestLANServerList(" + new AppId_t(440) + ", m_ServerListResponse) : " + m_ServerListRequest);
        }

        if (GUILayout.Button("RequestFriendsServerList(new AppId_t(440), null, 0, m_ServerListResponse)"))
        {
            ReleaseRequest();
            m_ServerListRequest = SteamMatchmakingServers.RequestFriendsServerList(new AppId_t(440), null, 0, m_ServerListResponse);
            print("SteamMatchmakingServers.RequestFriendsServerList(" + new AppId_t(440) + ", null, 0, m_ServerListResponse) : " + m_ServerListRequest);
        }

        if (GUILayout.Button("RequestFavoritesServerList(new AppId_t(440), null, 0, m_ServerListResponse)"))
        {
            ReleaseRequest();
            m_ServerListRequest = SteamMatchmakingServers.RequestFavoritesServerList(new AppId_t(440), null, 0, m_ServerListResponse);
            print("SteamMatchmakingServers.RequestFavoritesServerList(" + new AppId_t(440) + ", null, 0, m_ServerListResponse) : " + m_ServerListRequest);
        }

        if (GUILayout.Button("RequestHistoryServerList(new AppId_t(440), null, 0, m_ServerListResponse)"))
        {
            ReleaseRequest();
            m_ServerListRequest = SteamMatchmakingServers.RequestHistoryServerList(new AppId_t(440), null, 0, m_ServerListResponse);
            print("SteamMatchmakingServers.RequestHistoryServerList(" + new AppId_t(440) + ", null, 0, m_ServerListResponse) : " + m_ServerListRequest);
        }

        if (GUILayout.Button("RequestSpectatorServerList(new AppId_t(440), null, 0, m_ServerListResponse)"))
        {
            ReleaseRequest();
            m_ServerListRequest = SteamMatchmakingServers.RequestSpectatorServerList(new AppId_t(440), null, 0, m_ServerListResponse);
            print("SteamMatchmakingServers.RequestSpectatorServerList(" + new AppId_t(440) + ", null, 0, m_ServerListResponse) : " + m_ServerListRequest);
        }

        if (GUILayout.Button("ReleaseRequest(m_ServerListRequest)"))
        {
            ReleaseRequest();             // We do this instead, because we want to make sure that m_ServerListRequested gets set to Invalid after releasing.
        }

        if (GUILayout.Button("GetServerDetails(m_ServerListRequest, 0)"))
        {
            gameserveritem_t gsi = SteamMatchmakingServers.GetServerDetails(m_ServerListRequest, 0);
            print("SteamMatchmakingServers.GetServerDetails(" + m_ServerListRequest + ", 0) : " + gsi + "\n" + GameServerItemFormattedString(gsi));
        }

        if (GUILayout.Button("CancelQuery(m_ServerListRequest)"))
        {
            SteamMatchmakingServers.CancelQuery(m_ServerListRequest);
            print("SteamMatchmakingServers.CancelQuery(" + m_ServerListRequest + ")");
        }

        if (GUILayout.Button("RefreshQuery(m_ServerListRequest)"))
        {
            SteamMatchmakingServers.RefreshQuery(m_ServerListRequest);
            print("SteamMatchmakingServers.RefreshQuery(" + m_ServerListRequest + ")");
        }

        GUILayout.Label("SteamMatchmakingServers.IsRefreshing(m_ServerListRequest) : " + SteamMatchmakingServers.IsRefreshing(m_ServerListRequest));

        GUILayout.Label("SteamMatchmakingServers.GetServerCount(m_ServerListRequest) : " + SteamMatchmakingServers.GetServerCount(m_ServerListRequest));


        if (GUILayout.Button("RefreshServer(m_ServerListRequest, 0)"))
        {
            SteamMatchmakingServers.RefreshServer(m_ServerListRequest, 0);
            print("SteamMatchmakingServers.RefreshServer(" + m_ServerListRequest + ", 0)");
        }

        // 3494815209 = 208.78.165.233 = Valve Payload Server (Virginia srcds150 #1)
        if (GUILayout.Button("PingServer(3494815209, 27015, m_PingResponse)"))
        {
            CancelServerQuery();
            m_ServerQuery = SteamMatchmakingServers.PingServer(3494815209, 27015, m_PingResponse);
            print("SteamMatchmakingServers.PingServer(3494815209, 27015, m_PingResponse) : " + m_ServerQuery);
        }

        if (GUILayout.Button("PlayerDetails(3494815209, 27015, m_PlayersResponse)"))
        {
            CancelServerQuery();
            m_ServerQuery = SteamMatchmakingServers.PlayerDetails(3494815209, 27015, m_PlayersResponse);
            print("SteamMatchmakingServers.PlayerDetails(3494815209, 27015, m_PlayersResponse) : " + m_ServerQuery);
        }

        if (GUILayout.Button("ServerRules(3494815209, 27015, m_RulesResponse)"))
        {
            CancelServerQuery();
            m_ServerQuery = SteamMatchmakingServers.ServerRules(3494815209, 27015, m_RulesResponse);
            print("SteamMatchmakingServers.ServerRules(3494815209, 27015, m_RulesResponse) : " + m_ServerQuery);
        }

        if (GUILayout.Button("CancelServerQuery(m_ServerQuery)"))
        {
            CancelServerQuery();             // We do this instead, because we want to make sure that m_ServerListRequested gets set to Invalid after releasing, and we call it from a number of places.
        }
    }
 private void ServerFailedToRespond1()
 {
     Debug.Log("AutoJoin: Server ping failed " + this.invitedToIP + ", trying with port 27016");
     ISteamMatchmakingPingResponse pRequestServersResponse = new ISteamMatchmakingPingResponse(new ISteamMatchmakingPingResponse.ServerResponded(this.ServerResponded), new ISteamMatchmakingPingResponse.ServerFailedToRespond(this.ServerFailedToRespond2));
     HServerQuery hserverQuery = SteamMatchmakingServers.PingServer(this.QueryingIp, 27016, pRequestServersResponse);
 }
	public void RenderOnGUI() {
		GUILayout.BeginArea(new Rect(Screen.width - 120, 0, 120, Screen.height));
		GUILayout.Label("Variables:");
		GUILayout.Label("m_ServerListRequest: " + m_ServerListRequest);
		GUILayout.Label("m_ServerQuery: " + m_ServerQuery);
		GUILayout.EndArea();

		if (GUILayout.Button("RequestInternetServerList(new AppId_t(440), filters, (uint)filters.Length, m_ServerListResponse)")) {
			ReleaseRequest();

			MatchMakingKeyValuePair_t[] filters = new MatchMakingKeyValuePair_t[1];
			filters[0].m_szKey = "map";
			filters[0].m_szValue = "cp_granary";

			m_ServerListRequest = SteamMatchmakingServers.RequestInternetServerList(new AppId_t(440), filters, (uint)filters.Length, m_ServerListResponse);
			print("SteamMatchmakingServers.RequestInternetServerList(" + new AppId_t(440) + ", filters, (uint)filters.Length, m_ServerListResponse) : " + m_ServerListRequest);
		}

		if (GUILayout.Button("RequestLANServerList(new AppId_t(440), m_ServerListResponse)")) {
			ReleaseRequest();
			m_ServerListRequest = SteamMatchmakingServers.RequestLANServerList(new AppId_t(440), m_ServerListResponse); ;
			print("SteamMatchmakingServers.RequestLANServerList(" + new AppId_t(440) + ", m_ServerListResponse) : " + m_ServerListRequest);
		}

		if (GUILayout.Button("RequestFriendsServerList(new AppId_t(440), null, 0, m_ServerListResponse)")) {
			ReleaseRequest();
			m_ServerListRequest = SteamMatchmakingServers.RequestFriendsServerList(new AppId_t(440), null, 0, m_ServerListResponse);
			print("SteamMatchmakingServers.RequestFriendsServerList(" + new AppId_t(440) + ", null, 0, m_ServerListResponse) : " + m_ServerListRequest);
		}

		if (GUILayout.Button("RequestFavoritesServerList(new AppId_t(440), null, 0, m_ServerListResponse)")) {
			ReleaseRequest();
			m_ServerListRequest = SteamMatchmakingServers.RequestFavoritesServerList(new AppId_t(440), null, 0, m_ServerListResponse);
			print("SteamMatchmakingServers.RequestFavoritesServerList(" + new AppId_t(440) + ", null, 0, m_ServerListResponse) : " + m_ServerListRequest);
		}

		if (GUILayout.Button("RequestHistoryServerList(new AppId_t(440), null, 0, m_ServerListResponse)")) {
			ReleaseRequest();
			m_ServerListRequest = SteamMatchmakingServers.RequestHistoryServerList(new AppId_t(440), null, 0, m_ServerListResponse);
			print("SteamMatchmakingServers.RequestHistoryServerList(" + new AppId_t(440) + ", null, 0, m_ServerListResponse) : " + m_ServerListRequest);
		}

		if (GUILayout.Button("RequestSpectatorServerList(new AppId_t(440), null, 0, m_ServerListResponse)")) {
			ReleaseRequest();
			m_ServerListRequest = SteamMatchmakingServers.RequestSpectatorServerList(new AppId_t(440), null, 0, m_ServerListResponse);
			print("SteamMatchmakingServers.RequestSpectatorServerList(" + new AppId_t(440) + ", null, 0, m_ServerListResponse) : " + m_ServerListRequest);
		}

		if (GUILayout.Button("ReleaseRequest(m_ServerListRequest)")) {
			ReleaseRequest(); // We do this instead, because we want to make sure that m_ServerListRequested gets set to Invalid after releasing.
		}

		if (GUILayout.Button("GetServerDetails(m_ServerListRequest, 0)")) {
			gameserveritem_t gsi = SteamMatchmakingServers.GetServerDetails(m_ServerListRequest, 0);
			print("SteamMatchmakingServers.GetServerDetails(" + m_ServerListRequest + ", 0) : " + gsi + "\n" + GameServerItemFormattedString(gsi));
		}

		if (GUILayout.Button("CancelQuery(m_ServerListRequest)")) {
			SteamMatchmakingServers.CancelQuery(m_ServerListRequest);
			print("SteamMatchmakingServers.CancelQuery(" + m_ServerListRequest + ")");
		}

		if (GUILayout.Button("RefreshQuery(m_ServerListRequest)")) {
			SteamMatchmakingServers.RefreshQuery(m_ServerListRequest);
			print("SteamMatchmakingServers.RefreshQuery(" + m_ServerListRequest + ")");
		}

		GUILayout.Label("SteamMatchmakingServers.IsRefreshing(m_ServerListRequest) : " + SteamMatchmakingServers.IsRefreshing(m_ServerListRequest));

		GUILayout.Label("SteamMatchmakingServers.GetServerCount(m_ServerListRequest) : " + SteamMatchmakingServers.GetServerCount(m_ServerListRequest));


		if (GUILayout.Button("RefreshServer(m_ServerListRequest, 0)")) {
			SteamMatchmakingServers.RefreshServer(m_ServerListRequest, 0);
			print("SteamMatchmakingServers.RefreshServer(" + m_ServerListRequest + ", 0)");
		}

		// 3494815209 = 208.78.165.233 = Valve Payload Server (Virginia srcds150 #1)
		if (GUILayout.Button("PingServer(3494815209, 27015, m_PingResponse)")) {
			CancelServerQuery();
			m_ServerQuery = SteamMatchmakingServers.PingServer(3494815209, 27015, m_PingResponse);
			print("SteamMatchmakingServers.PingServer(3494815209, 27015, m_PingResponse) : " + m_ServerQuery);
		}

		if (GUILayout.Button("PlayerDetails(3494815209, 27015, m_PlayersResponse)")) {
			CancelServerQuery();
			m_ServerQuery = SteamMatchmakingServers.PlayerDetails(3494815209, 27015, m_PlayersResponse);
			print("SteamMatchmakingServers.PlayerDetails(3494815209, 27015, m_PlayersResponse) : " + m_ServerQuery);
		}

		if (GUILayout.Button("ServerRules(3494815209, 27015, m_RulesResponse)")) {
			CancelServerQuery();
			m_ServerQuery = SteamMatchmakingServers.ServerRules(3494815209, 27015, m_RulesResponse);
			print("SteamMatchmakingServers.ServerRules(3494815209, 27015, m_RulesResponse) : " + m_ServerQuery);
		}

		if (GUILayout.Button("CancelServerQuery(m_ServerQuery)")) {
			CancelServerQuery(); // We do this instead, because we want to make sure that m_ServerListRequested gets set to Invalid after releasing, and we call it from a number of places.
		}
	}
	private void CancelServerQuery() {
		if (m_ServerQuery != HServerQuery.Invalid) {
			SteamMatchmakingServers.CancelServerQuery(m_ServerQuery);
			m_ServerQuery = HServerQuery.Invalid;
			print("SteamMatchmakingServers.CancelServerQuery(m_ServerQuery)");
		}
	}
    public void RenderOnGUI()
    {
        GUILayout.BeginArea(new Rect(Screen.width - 200, 0, 200, Screen.height));
        GUILayout.Label("Variables:");
        GUILayout.Label("m_ServerListRequest: " + m_ServerListRequest);
        GUILayout.Label("m_ServerQuery: " + m_ServerQuery);
        GUILayout.Label("m_ServerListResponse: " + m_ServerListResponse);
        GUILayout.Label("m_PingResponse: " + m_PingResponse);
        GUILayout.Label("m_PlayersResponse: " + m_PlayersResponse);
        GUILayout.Label("m_RulesResponse: " + m_RulesResponse);
        GUILayout.EndArea();

        GUILayout.BeginVertical("box");
        m_ScrollPos = GUILayout.BeginScrollView(m_ScrollPos, GUILayout.Width(Screen.width - 215), GUILayout.Height(Screen.height - 33));

        if (GUILayout.Button("RequestInternetServerList(TestConstants.Instance.k_AppId_TeamFortress2, filters, (uint)filters.Length, m_ServerListResponse)"))
        {
            ReleaseRequest();

            MatchMakingKeyValuePair_t[] filters =
            {
                new MatchMakingKeyValuePair_t {
                    m_szKey = "appid", m_szValue = TestConstants.Instance.k_AppId_TeamFortress2.ToString()
                },
                new MatchMakingKeyValuePair_t {
                    m_szKey = "gamedir", m_szValue = "tf"
                },
                new MatchMakingKeyValuePair_t {
                    m_szKey = "gametagsand", m_szValue = "beta"
                },
            };
            m_ServerListRequest = SteamMatchmakingServers.RequestInternetServerList(TestConstants.Instance.k_AppId_TeamFortress2, filters, (uint)filters.Length, m_ServerListResponse);
            print("SteamMatchmakingServers.RequestInternetServerList(" + TestConstants.Instance.k_AppId_TeamFortress2 + ", " + filters + ", " + (uint)filters.Length + ", " + m_ServerListResponse + ") : " + m_ServerListRequest);
        }

        if (GUILayout.Button("RequestLANServerList(new AppId_t(440), m_ServerListResponse)"))
        {
            ReleaseRequest();
            m_ServerListRequest = SteamMatchmakingServers.RequestLANServerList(new AppId_t(440), m_ServerListResponse);
            print("SteamMatchmakingServers.RequestLANServerList(" + new AppId_t(440) + ", " + m_ServerListResponse + ") : " + m_ServerListRequest);
        }

        if (GUILayout.Button("RequestFriendsServerList(new AppId_t(440), null, 0, m_ServerListResponse)"))
        {
            ReleaseRequest();
            m_ServerListRequest = SteamMatchmakingServers.RequestFriendsServerList(new AppId_t(440), null, 0, m_ServerListResponse);
            print("SteamMatchmakingServers.RequestFriendsServerList(" + new AppId_t(440) + ", " + null + ", " + 0 + ", " + m_ServerListResponse + ") : " + m_ServerListRequest);
        }

        if (GUILayout.Button("RequestFavoritesServerList(new AppId_t(440), null, 0, m_ServerListResponse)"))
        {
            ReleaseRequest();
            m_ServerListRequest = SteamMatchmakingServers.RequestFavoritesServerList(new AppId_t(440), null, 0, m_ServerListResponse);
            print("SteamMatchmakingServers.RequestFavoritesServerList(" + new AppId_t(440) + ", " + null + ", " + 0 + ", " + m_ServerListResponse + ") : " + m_ServerListRequest);
        }

        if (GUILayout.Button("RequestHistoryServerList(new AppId_t(440), null, 0, m_ServerListResponse)"))
        {
            ReleaseRequest();
            m_ServerListRequest = SteamMatchmakingServers.RequestHistoryServerList(new AppId_t(440), null, 0, m_ServerListResponse);
            print("SteamMatchmakingServers.RequestHistoryServerList(" + new AppId_t(440) + ", " + null + ", " + 0 + ", " + m_ServerListResponse + ") : " + m_ServerListRequest);
        }

        if (GUILayout.Button("RequestSpectatorServerList(new AppId_t(440), null, 0, m_ServerListResponse)"))
        {
            ReleaseRequest();
            m_ServerListRequest = SteamMatchmakingServers.RequestSpectatorServerList(new AppId_t(440), null, 0, m_ServerListResponse);
            print("SteamMatchmakingServers.RequestSpectatorServerList(" + new AppId_t(440) + ", " + null + ", " + 0 + ", " + m_ServerListResponse + ") : " + m_ServerListRequest);
        }

        if (GUILayout.Button("ReleaseRequest(m_ServerListRequest)"))
        {
            ReleaseRequest();             // We do this instead, because we want to make sure that m_ServerListRequested gets set to Invalid after releasing.
        }

        if (GUILayout.Button("GetServerDetails(m_ServerListRequest, 0)"))
        {
            gameserveritem_t ret = SteamMatchmakingServers.GetServerDetails(m_ServerListRequest, 0);
            print("SteamMatchmakingServers.GetServerDetails(" + m_ServerListRequest + ", " + 0 + ") : " + ret);
            print(GameServerItemFormattedString(ret));
        }

        if (GUILayout.Button("CancelQuery(m_ServerListRequest)"))
        {
            SteamMatchmakingServers.CancelQuery(m_ServerListRequest);
            print("SteamMatchmakingServers.CancelQuery(" + m_ServerListRequest + ")");
        }

        if (GUILayout.Button("RefreshQuery(m_ServerListRequest)"))
        {
            SteamMatchmakingServers.RefreshQuery(m_ServerListRequest);
            print("SteamMatchmakingServers.RefreshQuery(" + m_ServerListRequest + ")");
        }

        GUILayout.Label("IsRefreshing(m_ServerListRequest) : " + SteamMatchmakingServers.IsRefreshing(m_ServerListRequest));

        GUILayout.Label("GetServerCount(m_ServerListRequest) : " + SteamMatchmakingServers.GetServerCount(m_ServerListRequest));

        if (GUILayout.Button("RefreshServer(m_ServerListRequest, 0)"))
        {
            SteamMatchmakingServers.RefreshServer(m_ServerListRequest, 0);
            print("SteamMatchmakingServers.RefreshServer(" + m_ServerListRequest + ", " + 0 + ")");
        }

        if (GUILayout.Button("PingServer(TestConstants.k_IpAddress208_78_165_233, TestConstants.k_Port27015, m_PingResponse)"))
        {
            CancelServerQuery();
            m_ServerQuery = SteamMatchmakingServers.PingServer(TestConstants.k_IpAddress208_78_165_233, TestConstants.k_Port27015, m_PingResponse);
            print("SteamMatchmakingServers.PingServer(" + TestConstants.k_IpAddress208_78_165_233 + ", " + TestConstants.k_Port27015 + ", " + m_PingResponse + ") : " + m_ServerQuery);
        }

        if (GUILayout.Button("PlayerDetails(TestConstants.k_IpAddress208_78_165_233, TestConstants.k_Port27015, m_PlayersResponse)"))
        {
            CancelServerQuery();
            m_ServerQuery = SteamMatchmakingServers.PlayerDetails(TestConstants.k_IpAddress208_78_165_233, TestConstants.k_Port27015, m_PlayersResponse);
            print("SteamMatchmakingServers.PlayerDetails(" + TestConstants.k_IpAddress208_78_165_233 + ", " + TestConstants.k_Port27015 + ", " + m_PlayersResponse + ") : " + m_ServerQuery);
        }

        if (GUILayout.Button("ServerRules(TestConstants.k_IpAddress208_78_165_233, TestConstants.k_Port27015, m_RulesResponse)"))
        {
            CancelServerQuery();
            m_ServerQuery = SteamMatchmakingServers.ServerRules(TestConstants.k_IpAddress208_78_165_233, TestConstants.k_Port27015, m_RulesResponse);
            print("SteamMatchmakingServers.ServerRules(" + TestConstants.k_IpAddress208_78_165_233 + ", " + TestConstants.k_Port27015 + ", " + m_RulesResponse + ") : " + m_ServerQuery);
        }

        if (GUILayout.Button("CancelServerQuery(m_ServerQuery)"))
        {
            CancelServerQuery();             // We do this instead, because we want to make sure that m_ServerListRequested gets set to Invalid after releasing, and we call it from a number of places.
        }

        GUILayout.EndScrollView();
        GUILayout.EndVertical();
    }