terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
ServerAutoFinder.cs
Go to the documentation of this file.
1using System;
3using System.Net;
6
7// Token: 0x020002D0 RID: 720
8public static class ServerAutoFinder
9{
10 // Token: 0x060010A8 RID: 4264 RVA: 0x00051C8C File Offset: 0x0004FE8C
11 private static void BroadcastRecieveThread()
12 {
13 int num = 1;
14 if (num == 0)
15 {
16 }
17 Thread.Sleep(1000);
18 if (num == 0)
19 {
20 }
21 }
22
23 // Token: 0x060010A9 RID: 4265 RVA: 0x00051D94 File Offset: 0x0004FF94
24 private static void LookForFriendPlatformGames()
25 {
27 if (PlatformUser.GetFriends() != null)
28 {
29 return;
30 }
32 if (array != null)
33 {
34 return;
35 }
36 if (false)
37 {
38 throw new OutOfMemoryException();
39 }
40 if (array != null)
41 {
42 return;
43 }
44 int num = 5000;
45 Thread.Sleep(num);
46 }
47
48 // Token: 0x060010AA RID: 4266 RVA: 0x00051DF0 File Offset: 0x0004FFF0
49 public static void UpdateResults()
50 {
51 if (!true)
52 {
53 }
55 long num = 0L;
58 Monitor.Enter(now, num != 0L);
62 }
63
64 // Token: 0x060010AB RID: 4267 RVA: 0x00051EA4 File Offset: 0x000500A4
65 public static void StartSearching()
66 {
67 if (!true)
68 {
69 }
70 if (true)
71 {
72 if (!true)
73 {
74 }
76 }
78 if (!true)
79 {
80 }
81 }
82
83 // Token: 0x060010AC RID: 4268 RVA: 0x00051ED0 File Offset: 0x000500D0
84 public static void StopSearching()
85 {
86 int num = 1;
87 if (num == 0)
88 {
89 }
90 if (num == 0)
91 {
92 }
93 }
94
95 // Token: 0x060010AD RID: 4269 RVA: 0x00051EE8 File Offset: 0x000500E8
96 // Note: this type is marked as 'beforefieldinit'.
98 {
99 }
100
101 // Token: 0x04001F81 RID: 8065
103
104 // Token: 0x04001F82 RID: 8066
105 private static UdpClient broadcastPort;
106
107 // Token: 0x04001F83 RID: 8067
109
110 // Token: 0x04001F84 RID: 8068
112
113 // Token: 0x04001F85 RID: 8069
115
116 // Token: 0x04001F86 RID: 8070
118
119 // Token: 0x04001F87 RID: 8071
120 private static DateTime LastListUpdate;
121
122 // Token: 0x04001F88 RID: 8072
124
125 // Token: 0x020002D1 RID: 721
127 {
128 // Token: 0x060010AE RID: 4270 RVA: 0x00051EF8 File Offset: 0x000500F8
130 {
131 }
132
133 // Token: 0x04001F89 RID: 8073
134 public string WorldName;
135
136 // Token: 0x04001F8A RID: 8074
138
139 // Token: 0x04001F8B RID: 8075
140 public int ServerPort;
141
142 // Token: 0x04001F8C RID: 8076
144
145 // Token: 0x04001F8D RID: 8077
146 public ushort WorldXSize;
147
148 // Token: 0x04001F8E RID: 8078
149 public int NumberOfPlayers;
150
151 // Token: 0x04001F8F RID: 8079
152 public int MaxPlayers;
153
154 // Token: 0x04001F90 RID: 8080
155 public short GameMode;
156
157 // Token: 0x04001F91 RID: 8081
158 public bool Corruption;
159
160 // Token: 0x04001F92 RID: 8082
161 public bool HardMode;
162
163 // Token: 0x04001F93 RID: 8083
164 public string HostName;
165
166 // Token: 0x04001F94 RID: 8084
168 }
169}
class f__AnonymousType0<< Count > j__TPar
static DrPlatform.DrPlatformType CurrentPlatform
Definition DrPlatform.cs:26
static void BroadcastRecieveThread()
static ManagedThread broadcastThread
static DateTime LastListUpdate
static void LookForFriendPlatformGames()
static List< ServerAutoFinder.SearchServerResult > FriendResults
static void UpdateResults()
static UdpClient broadcastPort
static ManagedThread platformFriendGamesThread
static void StopSearching()
static List< ServerAutoFinder.SearchServerResult > TempResults
static List< ServerAutoFinder.SearchServerResult > Results
static void StartSearching()
const SocketOptionName OnlyAllowIPv6
static void Enter(object obj)
Definition Monitor.cs:11
static void Sleep(int millisecondsTimeout)
Definition Thread.cs:207
static void CheckThreadTerminiate()
static PlatformUser[] GetFriends()
static DateTime Now
Definition DateTime.cs:530
double TotalSeconds
Definition TimeSpan.cs:137