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
SaveSynchronisationFinder.cs
Go to the documentation of this file.
1using System;
3using System.Net;
6using Terraria.Net;
7
8// Token: 0x020002C4 RID: 708
9public static class SaveSynchronisationFinder
10{
11 // Token: 0x06001066 RID: 4198 RVA: 0x000505B4 File Offset: 0x0004E7B4
12 private static void BroadcastRecieveThread()
13 {
14 if (!true)
15 {
16 }
17 Thread.Sleep(1000);
18 long num = 0L;
19 string text;
20 bool flag = TcpAddress.IsLocalHost(text);
21 if ("" == null)
22 {
23 }
24 Monitor.Enter("", num != 0L);
25 }
26
27 // Token: 0x06001067 RID: 4199 RVA: 0x000506CC File Offset: 0x0004E8CC
28 public static void UpdateResults()
29 {
30 if (!true)
31 {
32 }
39 }
40
41 // Token: 0x06001068 RID: 4200 RVA: 0x00050734 File Offset: 0x0004E934
42 public static void StartSearching()
43 {
44 if (!true)
45 {
46 }
47 if (true)
48 {
49 if (!true)
50 {
51 }
53 }
54 if (!true)
55 {
56 }
57 }
58
59 // Token: 0x06001069 RID: 4201 RVA: 0x00050754 File Offset: 0x0004E954
60 public static void StopSearching()
61 {
62 if (!true)
63 {
64 }
65 if (true)
66 {
67 }
68 }
69
70 // Token: 0x0600106A RID: 4202 RVA: 0x00050768 File Offset: 0x0004E968
71 // Note: this type is marked as 'beforefieldinit'.
73 {
74 }
75
76 // Token: 0x04001F44 RID: 8004
78
79 // Token: 0x04001F45 RID: 8005
80 private static DateTime LastListUpdate;
81
82 // Token: 0x04001F46 RID: 8006
84
85 // Token: 0x04001F47 RID: 8007
87
88 // Token: 0x04001F48 RID: 8008
89 private static UdpClient broadcastPort;
90
91 // Token: 0x04001F49 RID: 8009
92 private static Thread broadcastThread;
93
94 // Token: 0x020002C5 RID: 709
95 public class SearchServerResult
96 {
97 // Token: 0x0600106B RID: 4203 RVA: 0x00050778 File Offset: 0x0004E978
99 {
100 }
101
102 // Token: 0x04001F4A RID: 8010
104
105 // Token: 0x04001F4B RID: 8011
106 public string HostName;
107
108 // Token: 0x04001F4C RID: 8012
110
111 // Token: 0x04001F4D RID: 8013
112 public int PlayerFileCount;
113
114 // Token: 0x04001F4E RID: 8014
115 public int WorldFileCount;
116
117 // Token: 0x04001F4F RID: 8015
119 }
120}
class f__AnonymousType0<< Count > j__TPar
static List< SaveSynchronisationFinder.SearchServerResult > TempResults
const SocketOptionName OnlyAllowIPv6
static List< SaveSynchronisationFinder.SearchServerResult > Results
static void Enter(object obj)
Definition Monitor.cs:11
static void Sleep(int millisecondsTimeout)
Definition Thread.cs:207
override bool IsLocalHost()
Definition TcpAddress.cs:49
static DateTime Now
Definition DateTime.cs:530
double TotalSeconds
Definition TimeSpan.cs:137