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

◆ ReceiveThreadFunction()

void Telepathy.Client.ReceiveThreadFunction ( string ip,
int port )
inlineprivate

Definition at line 79 of file Client.cs.

80 {
82 if (tcpClient != null)
83 {
84 tcpClient.Connect(ip, port);
85 if (this.client != null)
86 {
88 bool noDelay = this.NoDelay;
91 int sendTimeout = this.SendTimeout;
93 this.sendThread.Start();
97 Common.ReceiveLoop(0, tcpClient4, receiveQueue, maxMessageSize);
98 Thread thread = this.sendThread;
99 if (thread != null)
100 {
101 thread.Interrupt();
102 }
104 if (tcpClient5 != null)
105 {
107 }
108 return;
109 }
110 }
111 }
class f__AnonymousType0<< Count > j__TPar
void Connect(string hostname, int port)
Definition TcpClient.cs:64
Thread sendThread
Definition Client.cs:297
TcpClient client
Definition Client.cs:291
ConcurrentQueue< Message > receiveQueue
Definition Common.cs:110

References Telepathy.Client.client, System.Net.Sockets.TcpClient.Close(), System.Net.Sockets.TcpClient.Connect(), System.Threading.Thread.Interrupt(), j__TPar, Telepathy.Common.MaxMessageSize, Telepathy.Common.NoDelay, Telepathy.Common.ReceiveLoop(), Telepathy.Common.receiveQueue, Telepathy.Client.sendThread, Telepathy.Common.SendTimeout, and System.Threading.Thread.Start().