UBrowser
Class UBrowserHTTPFact

source: e:\games\UnrealTournament\UBrowser\Classes\UBrowserHTTPFact.uc
Core.Object
   |
   +--UWindow.UWindowBase
      |
      +--UWindow.UWindowList
         |
         +--UBrowser.UBrowserServerListFactory
            |
            +--UBrowser.UBrowserHTTPFact
Direct Known Subclasses:None

class UBrowserHTTPFact
extends UBrowser.UBrowserServerListFactory


Variables
 UBrowserHTTPLink Link
 string MasterServerAddress
           Address of the master server
 int MasterServerTCPPort
           Optional port that the master server is listening on
 int MasterServerTimeout
           Optional port that the master server is listening on
 string MasterServerURI
           Address of the master server


Function Summary
 void Query(optional bool, optional bool)
 void QueryFinished(bool bSuccess, optional string)
 void Shutdown(optional bool)



Source Code


00001	class UBrowserHTTPFact extends UBrowserServerListFactory;
00002	
00003	var UBrowserHTTPLink Link;
00004	
00005	var() config string		MasterServerAddress;	// Address of the master server
00006	var() config string		MasterServerURI;
00007	var() config int		MasterServerTCPPort;	// Optional port that the master server is listening on
00008	var() config int		MasterServerTimeout;
00009	
00010	function Query(optional bool bBySuperset, optional bool bInitial)
00011	{
00012		Super.Query(bBySuperset, bInitial);
00013	
00014		Link = GetPlayerOwner().GetEntryLevel().Spawn(class'UBrowserHTTPLink');
00015	
00016		Link.MasterServerAddress = MasterServerAddress;
00017		Link.MasterServerURI = MasterServerURI;
00018		Link.MasterServerTCPPort = MasterServerTCPPort;
00019		Link.MasterServerTimeout = MasterServerTimeout;
00020		Link.OwnerFactory = Self;
00021		Link.Start();
00022	
00023	}
00024	
00025	function QueryFinished(bool bSuccess, optional string ErrorMsg)
00026	{
00027		Link.Destroy();
00028		Link = None;
00029	
00030		Super.QueryFinished(bSuccess, ErrorMsg);	
00031	}
00032	
00033	function Shutdown(optional bool bBySuperset)
00034	{
00035		if(Link != None)
00036			Link.Destroy();
00037		Link = None;
00038		Super.Shutdown(bBySuperset);
00039	}
00040	
00041	defaultproperties
00042	{
00043	     MasterServerAddress="master.telefragged.com"
00044	     MasterServerURI="/servers.txt"
00045	     MasterServerTCPPort=80
00046	     MasterServerTimeout=10
00047	}

End Source Code