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.
1
using
System
;
2
using
Telepathy
;
3
using
Terraria
;
4
using
Terraria.Net
;
5
6
// Token: 0x020002C6 RID: 710
7
public
class
SaveSynchronisationHost
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 = 0
L
;
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
);
65
this.connectedClient
= num;
66
return
;
67
}
68
Server
server3
= this.
Server
;
69
}
70
71
// Token: 0x06001072 RID: 4210 RVA: 0x00050964 File Offset: 0x0004EB64
72
public
SaveSynchronisationHost
()
73
{
74
}
75
76
// Token: 0x04001F50 RID: 8016
77
public
Server
Server
;
78
79
// Token: 0x04001F51 RID: 8017
80
public
SaveSynchronisationOperation
CurrentOperation
;
81
82
// Token: 0x04001F52 RID: 8018
83
public
int
connectedClient
;
84
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
SaveSynchronisationHost.RequestFile
void RequestFile(string filename)
Definition
SaveSynchronisationHost.cs:35
SaveSynchronisationHost.connectedClient
int connectedClient
Definition
SaveSynchronisationHost.cs:83
SaveSynchronisationHost.Start
void Start()
Definition
SaveSynchronisationHost.cs:10
SaveSynchronisationHost.Server
Server Server
Definition
SaveSynchronisationHost.cs:77
SaveSynchronisationHost.CurrentOperation
SaveSynchronisationOperation CurrentOperation
Definition
SaveSynchronisationHost.cs:80
SaveSynchronisationHost.Update
void Update()
Definition
SaveSynchronisationHost.cs:55
SaveSynchronisationHost.SaveSynchronisationHost
SaveSynchronisationHost()
Definition
SaveSynchronisationHost.cs:72
SaveSynchronisationHost.Close
void Close()
Definition
SaveSynchronisationHost.cs:16
SaveSynchronisationHost.SendFile
void SendFile(string filename)
Definition
SaveSynchronisationHost.cs:45
SaveSynchronisationHost.SendDataFunction
void SendDataFunction(byte[] messageData, int length)
Definition
SaveSynchronisationHost.cs:22
SaveSynchronisationHost
Definition
SaveSynchronisationHost.cs:8
SaveSynchronisationOperation
Definition
SaveSynchronisationOperation.cs:7
System.BitConverter.ToUInt16
static ushort ToUInt16(byte[] value, int startIndex)
Definition
BitConverter.cs:68
System.BitConverter
Definition
BitConverter.cs:10
Telepathy.Server.Start
bool Start(int port)
Definition
Server.cs:63
Telepathy.Server.Send
bool Send(int connectionId, byte[] data, int length)
Definition
Server.cs:129
Telepathy.Server.Stop
void Stop()
Definition
Server.cs:96
Telepathy.Server
Definition
Server.cs:14
Terraria.Main.SavePath
static string SavePath
Definition
Main.cs:4045
Terraria.Main
Definition
Main.cs:67
Terraria.Net.TcpAddress.IsLocalHost
override bool IsLocalHost()
Definition
TcpAddress.cs:49
Terraria.Net.TcpAddress
Definition
TcpAddress.cs:9
System.ExceptionArgument.text
@ text
System.ExceptionArgument.length
@ length
System.ConsoleKey.L
@ L
System
Definition
__ComObject.cs:4
Telepathy
Definition
Client.cs:12
Terraria.Net
Definition
AddressType.cs:4
Terraria
Definition
Achievement.cs:10
source
SaveSynchronisationHost.cs
Generated by
1.10.0