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
Mono.Unity.UnityTlsStream Class Reference
+ Inheritance diagram for Mono.Unity.UnityTlsStream:
+ Collaboration diagram for Mono.Unity.UnityTlsStream:

Public Member Functions

 UnityTlsStream (Stream innerStream, bool leaveInnerStreamOpen, SslStream owner, MonoTlsSettings settings, MobileTlsProvider provider)
 
void AuthenticateAsClient (string targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation)
 
void AuthenticateAsServer (X509Certificate serverCertificate, bool clientCertificateRequired, SslProtocols enabledSslProtocols, bool checkCertificateRevocation)
 
Task AuthenticateAsClientAsync (string targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation)
 
override int Read (byte[] buffer, int offset, int count)
 
virtual int Read (global::System.Span< byte > buffer)
 
override void Write (byte[] buffer, int offset, int count)
 
virtual void Write (global::System.ReadOnlySpan< byte > buffer)
 
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 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))
 
void Dispose ()
 
void Dispose ()
 
override void Flush ()
 
override long Seek (long offset, SeekOrigin origin)
 
override void SetLength (long value)
 
void CopyTo (Stream destination)
 
virtual void CopyTo (Stream destination, int bufferSize)
 
virtual void Close ()
 
virtual global::System.Threading.Tasks.Task FlushAsync (global::System.Threading.CancellationToken cancellationToken)
 
virtual global::System.IAsyncResult BeginRead (byte[] buffer, int offset, int count, global::System.AsyncCallback callback, object state)
 
virtual int EndRead (global::System.IAsyncResult asyncResult)
 
virtual global::System.IAsyncResult BeginWrite (byte[] buffer, int offset, int count, global::System.AsyncCallback callback, object state)
 
virtual void EndWrite (global::System.IAsyncResult asyncResult)
 
virtual int ReadByte ()
 
virtual void WriteByte (byte value)
 

Static Public Attributes

static readonly Stream Null
 

Protected Member Functions

override MobileTlsContext CreateContext (MonoSslAuthenticationOptions options)
 
override void Dispose (bool disposing)
 

Package Functions

void CheckThrow (bool authSuccessCheck, bool shutdownCheck=false)
 
ExceptionDispatchInfo SetException (Exception e)
 
unsafe int InternalRead (byte[] buffer, int offset, int size, out bool outWantMore)
 
unsafe bool InternalWrite (byte[] buffer, int offset, int size)
 
Task< int > InnerRead (bool sync, int requestedSize, CancellationToken cancellationToken)
 
Task InnerWrite (bool sync, CancellationToken cancellationToken)
 
AsyncOperationStatus ProcessHandshake (AsyncOperationStatus status, bool renegotiate)
 
ValueTuple< int, bool > ProcessRead (BufferOffsetSize userBuffer)
 
ValueTuple< int, bool > ProcessWrite (BufferOffsetSize userBuffer)
 
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 Exception GetSSPIException (Exception e)
 
static Exception GetIOException (Exception e, string message)
 
static Exception GetInternalError ()
 
static Exception GetInvalidNestedCallException ()
 
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

readonly int ID
 

Properties

SslStream SslStream [get, set]
 
MonoTlsSettings Settings [get, set]
 
MobileTlsProvider Provider [get, set]
 
string TargetHost [get, set, private set]
 
override bool IsAuthenticated [get, set]
 
X509Certificate LocalCertificate [get, set]
 
X509Certificate InternalLocalCertificate [get, set]
 
override bool CanRead [get, set]
 
override bool CanTimeout [get, set]
 
override bool CanWrite [get, set]
 
override bool CanSeek [get, set]
 
override long Length [get, set]
 
override long Position [get, set]
 
override int ReadTimeout [get, set]
 
override int WriteTimeout [get, set]
 
Stream InnerStream [get, set]
 

Private Types

enum  Operation {
  None , Handshake , Authenticated , Renegotiate ,
  Read , Write , Close
}
 
enum  OperationType { Read , Write , Renegotiate , Shutdown }
 

Private Member Functions

Task ProcessAuthentication (bool runSynchronously, MonoSslAuthenticationOptions options, CancellationToken cancellationToken)
 
Task< int > StartOperation (MobileAuthenticatedStream.OperationType type, AsyncProtocolRequest asyncRequest, CancellationToken cancellationToken)
 
ValueTuple< int, bool > InternalRead (AsyncProtocolRequest asyncRequest, BufferOffsetSize internalBuffer, byte[] buffer, int offset, int size)
 
bool InternalWrite (AsyncProtocolRequest asyncRequest, BufferOffsetSize2 internalBuffer, byte[] buffer, int offset, int size)
 
void< InnerWriteb__67_0 ()
 
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 ()
 

Private Attributes

MobileTlsContext xobileTlsContext
 
ExceptionDispatchInfo lastException
 
AsyncProtocolRequest asyncHandshakeRequest
 
AsyncProtocolRequest asyncReadRequest
 
AsyncProtocolRequest asyncWriteRequest
 
BufferOffsetSize2 readBuffer
 
BufferOffsetSize2 writeBuffer
 
object ioLock
 
int closeRequested
 
bool shutdown
 
MobileAuthenticatedStream.Operation operation
 
readonly SslStream< SslStreamk__BackingField
 
readonly MonoTlsSettings< Settingsk__BackingField
 
readonly MobileTlsProvider< Providerk__BackingField
 
string< TargetHostk__BackingField
 
Stream _InnerStream
 
bool _LeaveStreamOpen
 
Stream.ReadWriteTask _activeReadWriteTask
 
global::System.Threading.SemaphoreSlim _asyncActiveSemaphore
 

Static Private Attributes

static int uniqueNameInteger
 
static int nextId
 

Detailed Description

Definition at line 12 of file UnityTlsStream.cs.


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