terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
System.Net.FtpControlStream Class Reference
+ Inheritance diagram for System.Net.FtpControlStream:
+ Collaboration diagram for System.Net.FtpControlStream:

Public Member Functions

void Dispose ()
 
override long Seek (long offset, SeekOrigin origin)
 
override int Read (byte[] buffer, int offset, int size)
 
virtual int Read (global::System.Span< byte > buffer)
 
override void Write (byte[] buffer, int offset, int size)
 
virtual void Write (global::System.ReadOnlySpan< byte > buffer)
 
void Close (int timeout)
 
virtual void Close ()
 
override IAsyncResult BeginRead (byte[] buffer, int offset, int size, AsyncCallback callback, object state)
 
virtual global::System.IAsyncResult BeginRead (byte[] buffer, int offset, int count, global::System.AsyncCallback callback, object state)
 
override int EndRead (IAsyncResult asyncResult)
 
virtual int EndRead (global::System.IAsyncResult asyncResult)
 
override Task< int > ReadAsync (byte[] buffer, int offset, int count, CancellationToken cancellationToken)
 
global::System.Threading.Tasks.Task< int > ReadAsync (byte[] buffer, int offset, int count)
 
virtual global::System.Threading.Tasks.Task< int > ReadAsync (byte[] buffer, int offset, int count, global::System.Threading.CancellationToken cancellationToken)
 
virtual global::System.Threading.Tasks.ValueTask< int > ReadAsync (global::System.Memory< byte > buffer, global::System.Threading.CancellationToken cancellationToken=default(global::System.Threading.CancellationToken))
 
override IAsyncResult BeginWrite (byte[] buffer, int offset, int size, AsyncCallback callback, object state)
 
virtual global::System.IAsyncResult BeginWrite (byte[] buffer, int offset, int count, global::System.AsyncCallback callback, object state)
 
override void EndWrite (IAsyncResult asyncResult)
 
virtual void EndWrite (global::System.IAsyncResult asyncResult)
 
override Task WriteAsync (byte[] buffer, int offset, int count, CancellationToken cancellationToken)
 
global::System.Threading.Tasks.Task WriteAsync (byte[] buffer, int offset, int count)
 
virtual global::System.Threading.Tasks.Task WriteAsync (byte[] buffer, int offset, int count, global::System.Threading.CancellationToken cancellationToken)
 
virtual global::System.Threading.Tasks.ValueTask WriteAsync (global::System.ReadOnlyMemory< byte > buffer, global::System.Threading.CancellationToken cancellationToken=default(global::System.Threading.CancellationToken))
 
override void Flush ()
 
override Task FlushAsync (CancellationToken cancellationToken)
 
virtual global::System.Threading.Tasks.Task FlushAsync (global::System.Threading.CancellationToken cancellationToken)
 
override void SetLength (long value)
 
void CopyTo (Stream destination)
 
virtual void CopyTo (Stream destination, int bufferSize)
 
virtual int ReadByte ()
 
virtual void WriteByte (byte value)
 

Static Public Attributes

static readonly Stream Null
 

Protected Member Functions

override void ClearState ()
 
override CommandStream.PipelineInstruction PipelineCallback (CommandStream.PipelineEntry entry, ResponseDescription response, bool timeout, ref Stream stream)
 
override CommandStream.PipelineEntry[] BuildCommandsList (WebRequest req)
 
Socket CreateFtpDataSocket (FtpWebRequest request, Socket templateSocket)
 
override bool CheckValid (ResponseDescription response, ref int validThrough, ref int completeLength)
 
override void Dispose (bool disposing)
 
void InvokeRequestCallback (object obj)
 
void MarkAsRecoverableFailure ()
 
Exception GenerateException (string message, WebExceptionStatus status, Exception innerException)
 
Exception GenerateException (FtpStatusCode code, string statusDescription, Exception innerException)
 
void InitCommandPipeline (WebRequest request, CommandStream.PipelineEntry[] commands, bool isAsync)
 
Stream ContinueCommandPipeline ()
 

Protected Attributes

WebRequest _request
 
bool _isAsync
 
CommandStream.PipelineEntry[] _commands
 
int _index
 
string _abortReason
 

Package Types

enum  PipelineInstruction {
  Abort , Advance , Pause , Reread ,
  GiveStream
}
 
enum  PipelineEntryFlags { UserCommand = 1 , GiveDataStream = 2 , CreateDataConnection = 4 , DontLogParameter = 8 }
 

Package Functions

 FtpControlStream (TcpClient client)
 
void AbortConnect ()
 
virtual void Abort (Exception e)
 
Stream SubmitRequest (WebRequest request, bool isAsync, bool readInitalResponseOnConnect)
 
void CheckContinuePipeline ()
 
void CloseSocket ()
 
void SetSocketTimeoutOption (int timeout)
 
global::System.Threading.SemaphoreSlim EnsureAsyncActiveSemaphoreInitialized ()
 
global::System.IAsyncResult BeginReadInternal (byte[] buffer, int offset, int count, global::System.AsyncCallback callback, object state, bool serializeAsynchronously, bool apm)
 
global::System.IAsyncResult BeginWriteInternal (byte[] buffer, int offset, int count, global::System.AsyncCallback callback, object state, bool serializeAsynchronously, bool apm)
 
global::System.IAsyncResult BlockingBeginRead (byte[] buffer, int offset, int count, global::System.AsyncCallback callback, object state)
 
global::System.IAsyncResult BlockingBeginWrite (byte[] buffer, int offset, int count, global::System.AsyncCallback callback, object state)
 

Static Package Functions

static int BlockingEndRead (global::System.IAsyncResult asyncResult)
 
static void BlockingEndWrite (global::System.IAsyncResult asyncResult)
 
static global::System.Threading.Tasks.ValueTask< int > Method_Internal_Static_ValueTask_1_Int32_Task_1_Int32_Byte_Memory_1_Byte_0 (global::System.Threading.Tasks.Task< int > readTask, byte[] localBuffer, global::System.Memory< byte > localDestination)
 

Package Attributes

FtpStatusCode StatusCode
 
string StatusLine
 

Properties

NetworkCredential Credentials [get, set]
 
long ContentLength [get, set]
 
DateTime LastModified [get, set]
 
Uri ResponseUri [get, set]
 
string BannerMessage [get, set]
 
string WelcomeMessage [get, set]
 
string ExitMessage [get, set]
 
bool RecoverableFailure [get, set]
 
Encoding Encoding [get, set]
 
bool UsingSecureStream [get, set]
 
IPAddress ServerAddress [get, set]
 
Socket Socket [get, set]
 
NetworkStream NetworkStream [get, set]
 
override bool CanRead [get, set]
 
override bool CanSeek [get, set]
 
override bool CanWrite [get, set]
 
override bool CanTimeout [get, set]
 
override int ReadTimeout [get, set]
 
override int WriteTimeout [get, set]
 
override long Length [get, set]
 
override long Position [get, set]
 

Private Types

enum  GetPathOption { Normal , AssumeFilename , AssumeNoFilename }
 

Private Member Functions

CommandStream.PipelineInstruction QueueOrCreateFtpDataStream (ref Stream stream)
 
CommandStream.PipelineInstruction QueueOrCreateDataConection (CommandStream.PipelineEntry entry, ResponseDescription response, bool timeout, ref Stream stream, out bool isSocketReady)
 
string FormatAddress (IPAddress address, int Port)
 
string FormatAddressV6 (IPAddress address, int port)
 
long GetContentLengthFrom213Response (string responseString)
 
DateTime GetLastModifiedFrom213Response (string str)
 
void TryUpdateResponseUri (string str, FtpWebRequest request)
 
void TryUpdateContentLength (string str)
 
string GetLoginDirectory (string str)
 
int GetPortV4 (string responseString)
 
int GetPortV6 (string responseString)
 
void CreateFtpListenerSocket (FtpWebRequest request)
 
string GetPortCommandLine (FtpWebRequest request)
 
string FormatFtpCommand (string command, string parameter)
 
TriState IsFtpDataStreamWriteable ()
 
bool PostSendCommandProcessing (ref Stream stream)
 
bool PostReadCommandProcessing (ref Stream stream)
 
ResponseDescription ReceiveCommandResponse ()
 
void ReceiveCommandResponseCallback (ReceiveState state, int bytesRead)
 
int GetCopyBufferSize ()
 
global::System.Threading.Tasks.Task< int > BeginEndReadAsync (byte[] buffer, int offset, int count)
 
void RunReadWriteTaskWhenReady (global::System.Threading.Tasks.Task asyncWaiter, Stream.ReadWriteTask readWriteTask)
 
void RunReadWriteTask (Stream.ReadWriteTask readWriteTask)
 
void FinishTrackingAsyncOperation ()
 
global::System.Threading.Tasks.Task FinishWriteAsync (global::System.Threading.Tasks.Task writeTask, byte[] localBuffer)
 
global::System.Threading.Tasks.Task BeginEndWriteAsync (byte[] buffer, int offset, int count)
 
bool HasOverriddenBeginEndRead ()
 
bool HasOverriddenBeginEndWrite ()
 

Static Private Member Functions

static void AcceptCallback (IAsyncResult asyncResult)
 
static void ConnectCallback (IAsyncResult asyncResult)
 
static void SSLHandshakeCallback (IAsyncResult asyncResult)
 
static void GetPathInfo (FtpControlStream.GetPathOption pathOption, Uri uri, out string path, out string directory, out string filename)
 
static FtpControlStream ()
 
static void ReadCallback (IAsyncResult asyncResult)
 
static void WriteCallback (IAsyncResult asyncResult)
 

Private Attributes

Socket _dataSocket
 
IPEndPoint _passiveEndPoint
 
TlsStream _tlsStream
 
StringBuilder _bannerMessage
 
StringBuilder _welcomeMessage
 
StringBuilder _exitMessage
 
WeakReference _credentials
 
string _currentTypeSetting
 
long _contentLength
 
DateTime _lastModified
 
bool _dataHandshakeStarted
 
string _loginDirectory
 
string _establishedServerDirectory
 
string _requestedServerDirectory
 
Uri _responseUri
 
FtpLoginState _loginState
 
bool _recoverableFailure
 
bool _aborted
 
bool _doRead
 
bool _doSend
 
ResponseDescription _currentResponseDescription
 
string _buffer
 
Encoding _encoding
 
Decoder _decoder
 
TcpClient _client
 
NetworkStream _networkStream
 
Stream.ReadWriteTask _activeReadWriteTask
 
global::System.Threading.SemaphoreSlim _asyncActiveSemaphore
 

Static Private Attributes

static readonly AsyncCallback s_acceptCallbackDelegate
 
static readonly AsyncCallback s_connectCallbackDelegate
 
static readonly AsyncCallback s_SSLHandshakeCallback
 
static readonly AsyncCallback s_writeCallbackDelegate
 
static readonly AsyncCallback s_readCallbackDelegate
 
const int WaitingForPipeline = 1
 
const int CompletedPipeline = 2
 

Detailed Description

Definition at line 15 of file FtpControlStream.cs.


The documentation for this class was generated from the following file: