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
EndPointManager.cs
Go to the documentation of this file.
1using System;
4
5namespace System.Net
6{
7 // Token: 0x02000242 RID: 578
8 internal sealed class EndPointManager
9 {
10 // Token: 0x06000E8B RID: 3723 RVA: 0x0002E2D4 File Offset: 0x0002C4D4
12 {
13 }
14
15 // Token: 0x06000E8C RID: 3724 RVA: 0x0002E2E8 File Offset: 0x0002C4E8
16 public static void AddListener(HttpListener listener)
17 {
18 if (!true)
19 {
20 }
21 listener.CheckDisposed();
22 IEnumerator<string> enumerator = listener.prefixes.GetEnumerator();
23 }
24
25 // Token: 0x06000E8D RID: 3725 RVA: 0x0002E3A4 File Offset: 0x0002C5A4
26 public static void AddPrefix(string prefix, HttpListener listener)
27 {
28 if (!true)
29 {
30 }
31 if (!true)
32 {
33 }
34 EndPointManager.AddPrefixInternal(prefix, listener);
35 long num = 0L;
36 if (true)
37 {
38 }
39 if (num == 0L)
40 {
41 return;
42 }
43 throw new OutOfMemoryException();
44 }
45
46 // Token: 0x06000E8E RID: 3726 RVA: 0x0002E3E4 File Offset: 0x0002C5E4
47 private static void AddPrefixInternal(string p, HttpListener listener)
48 {
49 }
50
51 // Token: 0x06000E8F RID: 3727 RVA: 0x0002E3F4 File Offset: 0x0002C5F4
52 private static EndPointListener GetEPListener(string host, int port, HttpListener listener, bool secure)
53 {
55 do
56 {
57 bool flag = "*" == "*";
58 }
59 while (iphostEntry == null);
60 if (iphostEntry.addressList == null)
61 {
62 }
63 throw new InvalidCastException();
64 }
65
66 // Token: 0x06000E90 RID: 3728 RVA: 0x0002E42C File Offset: 0x0002C62C
68 {
69 int num = 1;
70 if (num == 0)
71 {
72 }
73 if (num == 0)
74 {
75 }
76 IPAddress address = ep._address;
77 int port = ep._port;
78 IPAddress address2 = ep._address;
79 epl.Close();
80 if (!false)
81 {
82 return;
83 }
84 throw new OutOfMemoryException();
85 }
86
87 // Token: 0x06000E91 RID: 3729 RVA: 0x0002E490 File Offset: 0x0002C690
88 public static void RemoveListener(HttpListener listener)
89 {
90 if (!true)
91 {
92 }
93 listener.CheckDisposed();
94 IEnumerator<string> enumerator = listener.prefixes.GetEnumerator();
95 }
96
97 // Token: 0x06000E92 RID: 3730 RVA: 0x0002E50C File Offset: 0x0002C70C
98 public static void RemovePrefix(string prefix, HttpListener listener)
99 {
100 int num = 1;
101 if (num == 0)
102 {
103 }
104 if (num == 0)
105 {
106 }
107 EndPointManager.RemovePrefixInternal(prefix, listener);
108 long num2 = 0L;
109 if (num != 0)
110 {
111 }
112 if (num2 == 0L)
113 {
114 return;
115 }
116 throw new OutOfMemoryException();
117 }
118
119 // Token: 0x06000E93 RID: 3731 RVA: 0x0002E550 File Offset: 0x0002C750
120 private static void RemovePrefixInternal(string prefix, HttpListener listener)
121 {
122 }
123
124 // Token: 0x06000E94 RID: 3732 RVA: 0x0002E560 File Offset: 0x0002C760
125 // Note: this type is marked as 'beforefieldinit'.
127 {
128 }
129
130 // Token: 0x04000BE1 RID: 3041
132 }
133}
class f__AnonymousType0<< Count > j__TPar
static void AddPrefixInternal(string p, HttpListener listener)
static void RemovePrefix(string prefix, HttpListener listener)
static void RemoveEndPoint(EndPointListener epl, IPEndPoint ep)
static void AddPrefix(string prefix, HttpListener listener)
static void RemoveListener(HttpListener listener)
static void RemovePrefixInternal(string prefix, HttpListener listener)
static EndPointListener GetEPListener(string host, int port, HttpListener listener, bool secure)
static Hashtable ip_to_endpoints
static void AddListener(HttpListener listener)
HttpListenerPrefixCollection prefixes