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

◆ CloseSocket()

void System.Net.WebConnection.CloseSocket ( )
inlineprivate

Definition at line 278 of file WebConnection.cs.

279 {
280 Stream stream = this.networkStream;
281 if (stream != null)
282 {
283 stream.Dispose();
284 }
286 if (monoTlsStream != null)
287 {
288 monoTlsStream.Dispose();
289 }
290 global::System.Net.Sockets.Socket socket = this.socket;
291 if (socket != null)
292 {
293 socket.Dispose();
294 }
295 long num = 0L;
296 Monitor.Exit(this);
297 if (num == 0L)
298 {
299 return;
300 }
301 throw new OutOfMemoryException();
302 }
void Dispose()
Definition Stream.cs:125
Mono.Net.Security.MonoTlsStream monoTlsStream
global::System.Net.Sockets.Socket socket
static void Exit(object obj)
Definition Monitor.cs:47

References System.IO.Stream.Dispose(), System.Threading.Monitor.Exit(), System.L, System.Net.WebConnection.monoTlsStream, System.Net.WebConnection.networkStream, and System.Net.WebConnection.socket.

Referenced by System.Net.WebConnection.Close().