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

◆ PipelineCallback()

override CommandStream.PipelineInstruction System.Net.FtpControlStream.PipelineCallback ( CommandStream::PipelineEntry entry,
ResponseDescription response,
bool timeout,
Stream stream )
inlineprotectedvirtual

Reimplemented from System.Net.CommandStream.

Definition at line 112 of file FtpControlStream.cs.

113 {
114 if (!true)
115 {
116 }
117 bool isEnabled = NetEventSource.IsEnabled;
118 if (entry != null)
119 {
120 string command = entry.Command;
121 if (command == null || command == null)
122 {
123 }
124 }
125 if (response != null)
126 {
127 string statusDescription = response.StatusDescription;
128 if (statusDescription != null && statusDescription == null)
129 {
130 throw new ArrayTypeMismatchException();
131 }
132 }
134 NetEventSource.Info(this, formattableString, "PipelineCallback");
135 if (response != null)
136 {
137 int status = response.Status;
139 string statusDescription2 = response.StatusDescription;
141 int index = this._index;
142 bool flag = entry.Command == "OPTS utf8 on\r\n";
143 int status2 = response.Status;
145 string statusLine = this.StatusLine;
146 int num = entry.Command.IndexOf("USER");
147 int num2 = 1;
149 this._index = "USER";
150 FtpLoginState loginState = this._loginState;
151 int num3 = entry.Command.IndexOf("PASS");
152 int num4 = 1;
154 if (entry.Flags == (CommandStream.PipelineEntryFlags)0)
155 {
156 goto IL_0178;
157 }
158 if (this._dataSocket != null)
159 {
160 string command2 = entry.Command;
161 string text;
163 }
164 }
165 Encoding @default = Encoding.Default;
166 this._encoding = @default;
167 this._decoder = @default;
169 string statusLine2 = this.StatusLine;
172 base.CloseSocket();
173 bool usingSecureStream = base.UsingSecureStream;
174 bool flag2 = entry.Command == "AUTH TLS\r\n";
175 IL_0178:
176 this.TryUpdateContentLength("AUTH TLS\r\n");
177 WebRequest request = this._request;
178 if (request != null)
179 {
180 }
181 return this.QueueOrCreateFtpDataStream(stream);
182 }
class f__AnonymousType0<< Count > j__TPar
void TryUpdateContentLength(string str)
CommandStream.PipelineInstruction QueueOrCreateFtpDataStream(Stream stream)
global::System.Net.Sockets.Socket _dataSocket
static Encoding UTF8
Definition Encoding.cs:828
static Encoding Default
Definition Encoding.cs:728
StringBuilder Append(char value, int repeatCount)

References System.Net.FtpControlStream._dataSocket, System.Net.FtpControlStream._exitMessage, System.Net.CommandStream._index, System.Net.FtpControlStream._loginState, System.Net.CommandStream._request, System.Net.FtpControlStream._welcomeMessage, System.Text.StringBuilder.Append(), System.Text.Encoding.Default, System.index, System.Net.NetEventSource.Info(), System.Net.NetEventSource.IsEnabled, j__TPar, System.Net.FtpControlStream.QueueOrCreateFtpDataStream(), System.Net.ResponseDescription.Status, System.Net.ResponseDescription.StatusDescription, System.Net.FtpControlStream.StatusLine, System.text, System.Net.FtpControlStream.TryUpdateContentLength(), and System.Text.Encoding.UTF8.