Gah - a solution with more questions. – EntropicLqd

UE2:UdpGameSpyUplink (UT2003)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT2003 Object >> Actor >> Info >> InternetInfo >> InternetLink >> UdpLink >> UdpGameSpyUplink
Package: 
IpDrv
This class in other games:
UE2Runtime, U2, UT2004

UdpGameSpyUplink

Version: 1.3

This uplink is compliant with the GameSpy Uplink Specification. The specification is available at http://www.gamespy.com/developer and might be of use to progammers who want to adapt their own server uplinks.

UdpGameSpyUplink sends a heartbeat to the specified master server every five minutes. The heartbeat is in the form: \heartbeat\QueryPort\gamename\unreal

Full documentation on this class is available at http://unreal.epicgames.com/

Properties

Property group 'UdpGameSpyUplink'

MasterServerAddress

Type: string

Address of the master server

MasterServerPort

Type: int

Modifiers: config

Optional port that the master server is listening on

Default value: 27900

ServerRegion

Type: int

Modifiers: config

Region of the game server

TargetQueryName

Type: name

Name of the query server object to use.

Default value: 'MasterUplink'

UpdateMinutes

Type: int

Modifiers: config

Period of update (in minutes)

Default value: 1

Internal variables

CurrentQueryNum

Type: int


HeartbeatMessage

Type: string

The message that is sent to the master server.

MasterServerIpAddr

Type: InternetLink.IpAddr

Master server's address.

Query

Type: UdpGameSpyQuery

The query object.

Functions

Events

PreBeginPlay

event PreBeginPlay ()

Overrides: Actor.PreBeginPlay


ReceivedText

event ReceivedText (InternetLink.IpAddr Addr, string Text)

Overrides: UdpLink.ReceivedText


Resolved

event Resolved (InternetLink.IpAddr Addr)

Overrides: InternetLink.Resolved


ResolveFailed

event ResolveFailed ()

Overrides: InternetLink.ResolveFailed


Timer

event Timer ()

Overrides: Actor.Timer


Other instance functions

Halt

function Halt ()


ParseNextQuery

function bool ParseNextQuery (string Query, out string QueryType, out string QueryValue, out string QueryRest, out string FinalPacket)


ParseQuery

function string ParseQuery (InternetLink.IpAddr Addr, coerce string QueryStr, int QueryNum, out int PacketNum)


Resume

function Resume ()


SendQueryPacket

function bool SendQueryPacket (InternetLink.IpAddr Addr, coerce string SendString, int QueryNum, int PacketNum, string FinalPacket)