Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

UBrowser.UBrowserHTTPFact


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
class UBrowserHTTPFact extends UBrowserServerListFactory;

var UBrowserHTTPLink Link;

var() config string		MasterServerAddress;	// Address of the master server
var() config string		MasterServerURI;
var() config int		MasterServerTCPPort;	// Optional port that the master server is listening on
var() config int		MasterServerTimeout;

function Query(optional bool bBySuperset, optional bool bInitial)
{
	Link = GetPlayerOwner().GetEntryLevel().Spawn(class'UBrowserHTTPLink');

	Link.MasterServerAddress = MasterServerAddress;
	Link.MasterServerURI = MasterServerURI;
	Link.MasterServerTCPPort = MasterServerTCPPort;
	Link.MasterServerTimeout = MasterServerTimeout;
	Link.OwnerFactory = Self;
	Link.Start();

	Super.Query();
}

function QueryFinished(bool bSuccess, optional string ErrorMsg)
{
	Link.Destroy();
	Link = None;

	Super.QueryFinished(bSuccess, ErrorMsg);
}

function Shutdown(optional bool bBySuperset)
{
	if (Link != None)
		Link.Destroy();
	Link = None;
	Super.Shutdown(bBySuperset);
}

defaultproperties
{
				MasterServerAddress="master.telefragged.com"
				MasterServerURI="/servers.txt"
				MasterServerTCPPort=80
				MasterServerTimeout=20
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: zo 11-11-2012 21:10:30.000 - Creation time: zo 11-11-2012 21:14:20.865 - Created with UnCodeX