home *** CD-ROM | disk | FTP | other *** search
/ Game.EXE 2004 October / My Disc.iso / patch / Unreal Tournament 2004 / ut2004-winpatch3323.exe / UT2004-Patch / System / Ipdrv.u / IpAddr_MasterServerLink_ScriptText.TextBuffer < prev    next >
Unknown  |  2004-09-07  |  1.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 4d 17 63 6c 61 73 73 20 |........|M.class |
|00000010| 4d 61 73 74 65 72 53 65 | 72 76 65 72 4c 69 6e 6b |MasterSe|rverLink|
|00000020| 20 65 78 74 65 6e 64 73 | 20 49 6e 66 6f 0d 0a 09 | extends| Info...|
|00000030| 6e 61 74 69 76 65 0d 0a | 09 74 72 61 6e 73 69 65 |native..|.transie|
|00000040| 6e 74 3b 0d 0a 0d 0a 2f | 2f 20 28 63 70 70 74 65 |nt;..../|/ (cppte|
|00000050| 78 74 29 0d 0a 2f 2f 20 | 28 63 70 70 74 65 78 74 |xt)..// |(cpptext|
|00000060| 29 0d 0a 2f 2f 20 28 63 | 70 70 74 65 78 74 29 0d |)..// (c|pptext).|
|00000070| 0a 2f 2f 20 28 63 70 70 | 74 65 78 74 29 0d 0a 0d |.// (cpp|text)...|
|00000080| 0a 73 74 72 75 63 74 20 | 6e 61 74 69 76 65 20 74 |.struct |native t|
|00000090| 4d 61 73 74 65 72 53 65 | 72 76 65 72 45 6e 74 72 |MasterSe|rverEntr|
|000000a0| 79 0d 0a 7b 0d 0a 20 20 | 20 20 76 61 72 20 73 74 |y..{.. | var st|
|000000b0| 72 69 6e 67 20 09 41 64 | 64 72 65 73 73 3b 0d 0a |ring .Ad|dress;..|
|000000c0| 20 20 20 20 76 61 72 20 | 69 6e 74 09 09 50 6f 72 | var |int..Por|
|000000d0| 74 3b 0d 0a 7d 3b 0d 0a | 0d 0a 76 61 72 20 6e 61 |t;..};..|..var na|
|000000e0| 74 69 76 65 20 63 6f 6e | 73 74 20 70 6f 69 6e 74 |tive con|st point|
|000000f0| 65 72 20 4c 69 6e 6b 50 | 74 72 3b 0d 0a 76 61 72 |er LinkP|tr;..var|
|00000100| 20 67 6c 6f 62 61 6c 63 | 6f 6e 66 69 67 20 69 6e | globalc|onfig in|
|00000110| 74 20 4c 41 4e 50 6f 72 | 74 3b 0d 0a 76 61 72 20 |t LANPor|t;..var |
|00000120| 67 6c 6f 62 61 6c 63 6f | 6e 66 69 67 20 69 6e 74 |globalco|nfig int|
|00000130| 20 4c 41 4e 53 65 72 76 | 65 72 50 6f 72 74 3b 0d | LANServ|erPort;.|
|00000140| 0a 0d 0a 76 61 72 20 67 | 6c 6f 62 61 6c 63 6f 6e |...var g|lobalcon|
|00000150| 66 69 67 20 61 72 72 61 | 79 3c 74 4d 61 73 74 65 |fig arra|y<tMaste|
|00000160| 72 53 65 72 76 65 72 45 | 6e 74 72 79 3e 20 09 4d |rServerE|ntry> .M|
|00000170| 61 73 74 65 72 53 65 72 | 76 65 72 4c 69 73 74 3b |asterSer|verList;|
|00000180| 0d 0a 76 61 72 20 61 72 | 72 61 79 3c 74 4d 61 73 |..var ar|ray<tMas|
|00000190| 74 65 72 53 65 72 76 65 | 72 45 6e 74 72 79 3e 20 |terServe|rEntry> |
|000001a0| 09 09 09 09 41 63 74 69 | 76 65 4d 61 73 74 65 72 |....Acti|veMaster|
|000001b0| 53 65 72 76 65 72 4c 69 | 73 74 3b 0d 0a 0d 0a 76 |ServerLi|st;....v|
|000001c0| 61 72 20 69 6e 74 20 4c | 61 73 74 4d 53 49 6e 64 |ar int L|astMSInd|
|000001d0| 65 78 3b 20 09 09 2f 2f | 20 49 6e 64 65 78 20 6f |ex; ..//| Index o|
|000001e0| 66 20 74 68 65 20 6c 61 | 73 74 20 75 73 65 64 20 |f the la|st used |
|000001f0| 6d 61 73 74 65 72 20 73 | 65 72 76 65 72 0d 0a 0d |master s|erver...|
|00000200| 0a 0d 0a 6e 61 74 69 76 | 65 20 66 75 6e 63 74 69 |...nativ|e functi|
|00000210| 6f 6e 20 62 6f 6f 6c 20 | 50 6f 6c 6c 28 20 69 6e |on bool |Poll( in|
|00000220| 74 20 57 61 69 74 54 69 | 6d 65 20 29 3b 0d 0a 0d |t WaitTi|me );...|
|00000230| 0a 2f 2f 20 43 68 65 61 | 70 20 61 6e 64 20 65 61 |.// Chea|p and ea|
|00000240| 73 79 20 6c 6f 61 64 20 | 62 61 6c 61 6e 63 69 6e |sy load |balancin|
|00000250| 67 20 63 6f 6d 69 6e 67 | 20 75 70 20 68 65 72 65 |g coming| up here|
|00000260| 2e 0d 0a 2f 2a 0d 0a 65 | 76 65 6e 74 20 47 65 74 |.../*..e|vent Get|
|00000270| 4d 61 73 74 65 72 53 65 | 72 76 65 72 28 20 6f 75 |MasterSe|rver( ou|
|00000280| 74 20 73 74 72 69 6e 67 | 20 4f 75 74 41 64 64 72 |t string| OutAddr|
|00000290| 65 73 73 2c 20 6f 75 74 | 20 69 6e 74 20 4f 75 74 |ess, out| int Out|
|000002a0| 50 6f 72 74 20 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |Port )..|{...loca|
|000002b0| 6c 20 69 6e 74 20 49 6e | 64 65 78 3b 0d 0a 09 49 |l int In|dex;...I|
|000002c0| 6e 64 65 78 20 20 20 20 | 20 20 3d 20 72 61 6e 64 |ndex | = rand|
|000002d0| 28 4d 61 73 74 65 72 53 | 65 72 76 65 72 4c 69 73 |(MasterS|erverLis|
|000002e0| 74 2e 4c 65 6e 67 74 68 | 29 3b 0d 0a 09 4f 75 74 |t.Length|);...Out|
|000002f0| 41 64 64 72 65 73 73 20 | 3d 20 4d 61 73 74 65 72 |Address |= Master|
|00000300| 53 65 72 76 65 72 4c 69 | 73 74 5b 49 6e 64 65 78 |ServerLi|st[Index|
|00000310| 5d 2e 41 64 64 72 65 73 | 73 3b 0d 0a 09 4f 75 74 |].Addres|s;...Out|
|00000320| 50 6f 72 74 20 20 20 20 | 3d 20 4d 61 73 74 65 72 |Port |= Master|
|00000330| 53 65 72 76 65 72 4c 69 | 73 74 5b 49 6e 64 65 78 |ServerLi|st[Index|
|00000340| 5d 2e 50 6f 72 74 3b 0d | 0a 7d 0d 0a 2a 2f 0d 0a |].Port;.|.}..*/..|
|00000350| 0d 0a 65 76 65 6e 74 20 | 47 65 74 4d 61 73 74 65 |..event |GetMaste|
|00000360| 72 53 65 72 76 65 72 28 | 20 6f 75 74 20 73 74 72 |rServer(| out str|
|00000370| 69 6e 67 20 4f 75 74 41 | 64 64 72 65 73 73 2c 20 |ing OutA|ddress, |
|00000380| 6f 75 74 20 69 6e 74 20 | 4f 75 74 50 6f 72 74 20 |out int |OutPort |
|00000390| 29 0d 0a 7b 0d 0a 09 6c | 6f 63 61 6c 20 69 6e 74 |)..{...l|ocal int|
|000003a0| 20 49 6e 64 65 78 3b 0d | 0a 0d 0a 09 69 66 20 28 | Index;.|....if (|
|000003b0| 41 63 74 69 76 65 4d 61 | 73 74 65 72 53 65 72 76 |ActiveMa|sterServ|
|000003c0| 65 72 4c 69 73 74 2e 4c | 65 6e 67 74 68 3d 3d 30 |erList.L|ength==0|
|000003d0| 29 0d 0a 09 7b 0d 0a 09 | 09 66 6f 72 20 28 49 6e |)...{...|.for (In|
|000003e0| 64 65 78 3d 30 3b 49 6e | 64 65 78 3c 4d 61 73 74 |dex=0;In|dex<Mast|
|000003f0| 65 72 53 65 72 76 65 72 | 4c 69 73 74 2e 4c 65 6e |erServer|List.Len|
|00000400| 67 74 68 3b 49 6e 64 65 | 78 2b 2b 29 0d 0a 09 09 |gth;Inde|x++)....|
|00000410| 7b 0d 0a 09 09 09 41 63 | 74 69 76 65 4d 61 73 74 |{.....Ac|tiveMast|
|00000420| 65 72 53 65 72 76 65 72 | 4c 69 73 74 2e 4c 65 6e |erServer|List.Len|
|00000430| 67 74 68 20 3d 20 49 6e | 64 65 78 2b 31 3b 0d 0a |gth = In|dex+1;..|
|00000440| 09 09 09 41 63 74 69 76 | 65 4d 61 73 74 65 72 53 |...Activ|eMasterS|
|00000450| 65 72 76 65 72 4c 69 73 | 74 5b 49 6e 64 65 78 5d |erverLis|t[Index]|
|00000460| 2e 41 64 64 72 65 73 73 | 20 3d 20 4d 61 73 74 65 |.Address| = Maste|
|00000470| 72 53 65 72 76 65 72 4c | 69 73 74 5b 49 6e 64 65 |rServerL|ist[Inde|
|00000480| 78 5d 2e 41 64 64 72 65 | 73 73 3b 0d 0a 09 09 09 |x].Addre|ss;.....|
|00000490| 41 63 74 69 76 65 4d 61 | 73 74 65 72 53 65 72 76 |ActiveMa|sterServ|
|000004a0| 65 72 4c 69 73 74 5b 49 | 6e 64 65 78 5d 2e 50 6f |erList[I|ndex].Po|
|000004b0| 72 74 20 3d 20 4d 61 73 | 74 65 72 53 65 72 76 65 |rt = Mas|terServe|
|000004c0| 72 4c 69 73 74 5b 49 6e | 64 65 78 5d 2e 50 6f 72 |rList[In|dex].Por|
|000004d0| 74 3b 0d 0a 09 09 7d 0d | 0a 09 7d 0d 0a 0d 0a 09 |t;....}.|..}.....|
|000004e0| 49 6e 64 65 78 20 20 20 | 20 20 20 20 3d 20 72 61 |Index | = ra|
|000004f0| 6e 64 28 41 63 74 69 76 | 65 4d 61 73 74 65 72 53 |nd(Activ|eMasterS|
|00000500| 65 72 76 65 72 4c 69 73 | 74 2e 4c 65 6e 67 74 68 |erverLis|t.Length|
|00000510| 29 3b 0d 0a 09 4c 61 73 | 74 4d 53 49 6e 64 65 78 |);...Las|tMSIndex|
|00000520| 20 3d 20 49 6e 64 65 78 | 3b 0d 0a 0d 0a 09 4f 75 | = Index|;.....Ou|
|00000530| 74 41 64 64 72 65 73 73 | 20 3d 20 41 63 74 69 76 |tAddress| = Activ|
|00000540| 65 4d 61 73 74 65 72 53 | 65 72 76 65 72 4c 69 73 |eMasterS|erverLis|
|00000550| 74 5b 49 6e 64 65 78 5d | 2e 41 64 64 72 65 73 73 |t[Index]|.Address|
|00000560| 3b 0d 0a 09 4f 75 74 50 | 6f 72 74 20 20 20 20 3d |;...OutP|ort =|
|00000570| 20 41 63 74 69 76 65 4d | 61 73 74 65 72 53 65 72 | ActiveM|asterSer|
|00000580| 76 65 72 4c 69 73 74 5b | 49 6e 64 65 78 5d 2e 50 |verList[|Index].P|
|00000590| 6f 72 74 3b 0d 0a 7d 0d | 0a 0d 0a 73 69 6d 75 6c |ort;..}.|...simul|
|000005a0| 61 74 65 64 20 66 75 6e | 63 74 69 6f 6e 20 54 69 |ated fun|ction Ti|
|000005b0| 63 6b 28 20 66 6c 6f 61 | 74 20 44 65 6c 74 61 20 |ck( floa|t Delta |
|000005c0| 29 0d 0a 7b 0d 0a 09 50 | 6f 6c 6c 28 30 29 3b 0d |)..{...P|oll(0);.|
|000005d0| 0a 7d 0d 0a 0d 0a 00 | |.}..... | |
+--------+-------------------------+-------------------------+--------+--------+