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

◆ QueueOrCreateDataConection()

CommandStream.PipelineInstruction System.Net.FtpControlStream.QueueOrCreateDataConection ( CommandStream::PipelineEntry entry,
ResponseDescription response,
bool timeout,
Stream stream,
[Out] bool isSocketReady )
inlineprivate

Definition at line 240 of file FtpControlStream.cs.

241 {
242 if (this._dataHandshakeStarted)
243 {
244 int num = 1;
245 isSocketReady.m_value = num != 0;
246 }
247 int num2 = 1;
249 bool flag = entry.Command == "PASV\r\n";
250 bool flag2 = entry.Command == "EPSV\r\n";
251 int status = response.Status;
252 bool flag3 = entry.Command == "PASV\r\n";
253 string statusDescription = response.StatusDescription;
254 string text;
256 IPEndPoint passiveEndPoint = this._passiveEndPoint;
257 if (text == null)
258 {
259 }
260 NetEventSource.Fail(this, "'port' not set.", "QueueOrCreateDataConection");
261 WebRequest request = this._request;
262 global::System.Net.Sockets.Socket socket = base.Socket;
263 if (request != null)
264 {
265 }
266 global::System.Net.Sockets.Socket socket2;
268 if (base.Socket.LocalEndPoint != null)
269 {
270 }
271 global::System.Net.Sockets.Socket dataSocket = this._dataSocket;
272 IPAddress serverAddress = base.ServerAddress;
273 bool isEnabled = NetEventSource.IsEnabled;
274 NetEventSource.Info(this, "starting Connect()", "QueueOrCreateDataConection");
275 bool isAsync = this._isAsync;
276 global::System.Net.Sockets.Socket dataSocket2 = this._dataSocket;
277 global::System.Net.Sockets.Socket dataSocket3;
278 if (isAsync)
279 {
280 if (!isAsync)
281 {
282 }
283 if (!isAsync)
284 {
285 }
286 bool isEnabled2 = NetEventSource.IsEnabled;
287 if (!isAsync)
288 {
289 }
290 NetEventSource.Info(this, "starting Accept()", "QueueOrCreateDataConection");
291 bool isAsync2 = this._isAsync;
293 if (isAsync2)
294 {
295 if (!isAsync2)
296 {
297 }
298 }
299 }
300 global::System.Net.Sockets.Socket socket3 = dataSocket3.Accept();
302 IPAddress serverAddress2 = base.ServerAddress;
303 if (this._dataSocket.RemoteEndPoint != null)
304 {
305 }
306 dataSocket3.Close();
307 throw new InvalidCastException();
308 }
class f__AnonymousType0<< Count > j__TPar
global::System.Net.Sockets.Socket _dataSocket

References System.Net.FtpControlStream._dataHandshakeStarted, System.Net.FtpControlStream._dataSocket, System.Net.CommandStream._isAsync, System.Net.FtpControlStream._passiveEndPoint, System.Net.CommandStream._request, System.Net.NetEventSource.Fail(), System.Net.NetEventSource.Info(), System.Net.NetEventSource.IsEnabled, j__TPar, System.Net.ResponseDescription.Status, System.Net.ResponseDescription.StatusDescription, and System.text.