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
TcpAddress.cs
Go to the documentation of this file.
1using System;
2using System.Net;
4
5namespace Terraria.Net
6{
7 // Token: 0x020006AA RID: 1706
8 public class TcpAddress : RemoteAddress
9 {
10 // Token: 0x060038AE RID: 14510 RVA: 0x002263B0 File Offset: 0x002245B0
11 public TcpAddress(IPAddress address, int port)
12 {
13 this.Address = address;
14 this.Port = port;
15 }
16
17 // Token: 0x060038AF RID: 14511 RVA: 0x002263D4 File Offset: 0x002245D4
18 public TcpAddress(string host, int port)
19 {
20 this.Host = host;
21 this.Port = port;
22 }
23
24 // Token: 0x060038B0 RID: 14512 RVA: 0x002263F8 File Offset: 0x002245F8
25 public override string GetIdentifier()
26 {
27 /*
28An exception occurred when decompiling this method (060038B0)
29
30ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String Terraria.Net.TcpAddress::GetIdentifier()
31
32 ---> System.Exception: Basic block has to end with unconditional control flow.
33{
34 Block_0:
35 stloc:IPAddress(var_0_06, ldfld:IPAddress(TcpAddress::Address, ldloc:TcpAddress(this)))
36}
37
38 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
39 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
40 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
41 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
42 --- End of inner exception stack trace ---
43 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
44 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
45*/;
46 }
47
48 // Token: 0x060038B1 RID: 14513 RVA: 0x0022640C File Offset: 0x0022460C
49 public override bool IsLocalHost()
50 {
51 /*
52An exception occurred when decompiling this method (060038B1)
53
54ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.Net.TcpAddress::IsLocalHost()
55
56 ---> System.Exception: Basic block has to end with unconditional control flow.
57{
58 IL_0000:
59 stloc:IPAddress(var_0_06, ldfld:IPAddress(TcpAddress::Address, ldloc:TcpAddress(this)))
60 brtrue(IL_0000, ldc.i4:bool(1))
61}
62
63 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
64 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
65 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
66 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
67 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
68 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
69 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
70 --- End of inner exception stack trace ---
71 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
72 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
73*/;
74 }
75
76 // Token: 0x060038B2 RID: 14514 RVA: 0x00226424 File Offset: 0x00224624
77 public override string ToString()
78 {
79 bool flag = string.IsNullOrEmpty(this.Host);
80 IPAddress address = this.Address;
81 int port = this.Port;
82 string text;
83 return text;
84 }
85
86 // Token: 0x060038B3 RID: 14515 RVA: 0x000021DB File Offset: 0x000003DB
87 public override string GetFriendlyName()
88 {
89 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
90 }
91
92 // Token: 0x060038B4 RID: 14516 RVA: 0x0022644C File Offset: 0x0022464C
93 public static bool IsLocalHost(string addressString)
94 {
95 int num = 1;
96 if (num == 0)
97 {
98 }
99 if (num == 0)
100 {
101 }
102 bool flag;
103 return flag;
104 }
105
106 // Token: 0x04007957 RID: 31063
107 public string Host;
108
109 // Token: 0x04007958 RID: 31064
111
112 // Token: 0x04007959 RID: 31065
113 public int Port;
114 }
115}
class f__AnonymousType0<< Count > j__TPar
TcpAddress(IPAddress address, int port)
Definition TcpAddress.cs:11
override bool IsLocalHost()
Definition TcpAddress.cs:49
override string GetIdentifier()
Definition TcpAddress.cs:25
override string GetFriendlyName()
Definition TcpAddress.cs:87
static bool IsLocalHost(string addressString)
Definition TcpAddress.cs:93
override string ToString()
Definition TcpAddress.cs:77
TcpAddress(string host, int port)
Definition TcpAddress.cs:18