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

◆ Connect() [3/3]

void System.Net.Sockets.TcpClient.Connect ( string hostname,
int port )
inline

Definition at line 64 of file TcpClient.cs.

65 {
66 bool on = Logging.On;
67 if (!this.m_CleanedUp)
68 {
69 if (hostname != null)
70 {
71 bool flag = ValidationHelper.ValidateTcpPort(port);
72 if (this.m_Active)
73 {
74 return;
75 }
76 IPAddress[] hostAddresses = Dns.GetHostAddresses(hostname);
78 if (clientSocket == null)
79 {
80 if (clientSocket == null)
81 {
82 }
84 if (clientSocket == null)
85 {
86 }
87 bool ossupportsIPv2 = Socket.OSSupportsIPv6;
88 }
89 ushort[] numbers = hostAddresses._numbers;
90 if (numbers != null)
91 {
92 return;
93 }
94 AddressFamily addressFamily;
95 if (addressFamily != AddressFamily.Unspecified)
96 {
97 if (addressFamily != AddressFamily.Unspecified)
98 {
99 return;
100 }
101 }
102 else if (addressFamily == AddressFamily.Unspecified || addressFamily != AddressFamily.Unspecified)
103 {
104 }
105 return;
106 }
107 }
108 else
109 {
111 Type type = hostAddresses.GetType();
112 }
113 }
class f__AnonymousType0<< Count > j__TPar
static bool OSSupportsIPv4
Definition Socket.cs:155
new Type GetType()
Definition Type.cs:287

References System.Net.Dns.GetHostAddresses(), System.Type.GetType(), j__TPar, System.Net.Sockets.TcpClient.m_Active, System.Net.Sockets.TcpClient.m_CleanedUp, System.Net.Sockets.TcpClient.m_ClientSocket, System.Net.Logging.On, System.Net.Sockets.Socket.OSSupportsIPv4, System.Net.Sockets.Socket.OSSupportsIPv6, and System.Net.ValidationHelper.ValidateTcpPort().

Referenced by Telepathy.Client.ReceiveThreadFunction().