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
SaveSynchronisationHost.cs
Go to the documentation of this file.
1using System;
2using Telepathy;
3using Terraria;
4using Terraria.Net;
5
6// Token: 0x020002C6 RID: 710
8{
9 // Token: 0x0600106C RID: 4204 RVA: 0x0005078C File Offset: 0x0004E98C
10 public void Start()
11 {
12 bool flag = this.Server.Start(5555);
13 }
14
15 // Token: 0x0600106D RID: 4205 RVA: 0x000507AC File Offset: 0x0004E9AC
16 public void Close()
17 {
18 this.Server.Stop();
19 }
20
21 // Token: 0x0600106E RID: 4206 RVA: 0x000507C4 File Offset: 0x0004E9C4
22 private void SendDataFunction(byte[] messageData, int length)
23 {
24 if (!true)
25 {
26 }
27 long num = 0L;
28 ushort num2 = BitConverter.ToUInt16(messageData, (int)num);
29 Server server = this.Server;
30 int num3 = this.connectedClient;
31 bool flag = server.Send(num3, messageData, length);
32 }
33
34 // Token: 0x0600106F RID: 4207 RVA: 0x00050810 File Offset: 0x0004EA10
35 public void RequestFile(string filename)
36 {
37 if (!true)
38 {
39 }
40 string savePath = Main.SavePath;
41 string text = filename.Replace(savePath, "");
42 }
43
44 // Token: 0x06001070 RID: 4208 RVA: 0x00050888 File Offset: 0x0004EA88
45 public void SendFile(string filename)
46 {
47 if (!true)
48 {
49 }
50 string savePath = Main.SavePath;
51 string text = filename.Replace(savePath, "");
52 }
53
54 // Token: 0x06001071 RID: 4209 RVA: 0x000508B0 File Offset: 0x0004EAB0
55 public void Update()
56 {
57 int num = 1;
58 Server server = this.Server;
59 if (num == 0)
60 {
61 Server server2 = this.Server;
62 string text2;
63 string text = text2.Replace("::ffff:", "");
64 bool flag = TcpAddress.IsLocalHost(text);
66 return;
67 }
68 Server server3 = this.Server;
69 }
70
71 // Token: 0x06001072 RID: 4210 RVA: 0x00050964 File Offset: 0x0004EB64
73 {
74 }
75
76 // Token: 0x04001F50 RID: 8016
77 public Server Server;
78
79 // Token: 0x04001F51 RID: 8017
81
82 // Token: 0x04001F52 RID: 8018
83 public int connectedClient;
84}
class f__AnonymousType0<< Count > j__TPar
void RequestFile(string filename)
SaveSynchronisationOperation CurrentOperation
void SendFile(string filename)
void SendDataFunction(byte[] messageData, int length)
static ushort ToUInt16(byte[] value, int startIndex)
bool Start(int port)
Definition Server.cs:63
bool Send(int connectionId, byte[] data, int length)
Definition Server.cs:129
void Stop()
Definition Server.cs:96
static string SavePath
Definition Main.cs:4045
override bool IsLocalHost()
Definition TcpAddress.cs:49