Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ PostReadCommandProcessing()

bool System.Net.CommandStream.PostReadCommandProcessing ( ref Stream stream)
inlineprivateinherited

Definition at line 315 of file CommandStream.cs.

316 {
317 if (_index >= _commands.Length)
318 {
319 return false;
320 }
321 _doSend = false;
322 _doRead = false;
323 PipelineEntry pipelineEntry = ((_index != -1) ? _commands[_index] : null);
324 switch ((_currentResponseDescription == null && pipelineEntry.Command == "QUIT\r\n") ? PipelineInstruction.Advance : PipelineCallback(pipelineEntry, _currentResponseDescription, timeout: false, ref stream))
325 {
326 case PipelineInstruction.Abort:
327 {
328 Exception ex = ((!(_abortReason != string.Empty)) ? GenerateException(System.SR.net_ftp_protocolerror, WebExceptionStatus.ServerProtocolViolation, null) : new WebException(_abortReason));
329 Abort(ex);
330 throw ex;
331 }
332 case PipelineInstruction.Advance:
334 _doSend = true;
335 _doRead = true;
336 _index++;
337 break;
338 case PipelineInstruction.Pause:
339 return true;
340 case PipelineInstruction.GiveStream:
342 _doRead = true;
343 if (_isAsync)
344 {
347 }
348 return true;
349 case PipelineInstruction.Reread:
351 _doRead = true;
352 break;
353 }
354 return false;
355 }
ResponseDescription _currentResponseDescription
PipelineEntry[] _commands
virtual PipelineInstruction PipelineCallback(PipelineEntry entry, ResponseDescription response, bool timeout, ref Stream stream)
void InvokeRequestCallback(object obj)
Exception GenerateException(string message, WebExceptionStatus status, Exception innerException)
static string net_ftp_protocolerror
Definition SR.cs:104
Definition SR.cs:7

References System.Net.CommandStream._abortReason, System.Net.CommandStream._commands, System.Net.CommandStream._currentResponseDescription, System.Net.CommandStream._doRead, System.Net.CommandStream._doSend, System.Net.CommandStream._index, System.Net.CommandStream._isAsync, System.Net.CommandStream.Abort, System.Net.CommandStream.PipelineEntry.Command, System.Net.CommandStream.ContinueCommandPipeline(), System.Net.CommandStream.GenerateException(), System.Net.CommandStream.InvokeRequestCallback(), System.SR.net_ftp_protocolerror, System.Net.CommandStream.PipelineCallback(), System.stream, and System.timeout.

Referenced by System.Net.CommandStream.PostSendCommandProcessing(), and System.Net.CommandStream.ReceiveCommandResponseCallback().