Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Net.Quic.Implementations.MsQuic.MsQuicConnection Class Referencesealed

Classes

class  State
 

Public Member Functions

 MsQuicConnection (IPEndPoint localEndPoint, IPEndPoint remoteEndPoint, MsQuicListener.State listenerState, SafeMsQuicConnectionHandle handle, bool remoteCertificateRequired=false, X509RevocationMode revocationMode=X509RevocationMode.Offline, RemoteCertificateValidationCallback remoteCertificateValidationCallback=null, ServerCertificateSelectionCallback serverCertificateSelectionCallback=null)
 
 MsQuicConnection (QuicClientConnectionOptions options)
 
override void Dispose ()
 

Package Functions

string TraceId ()
 
override async ValueTask< QuicStreamProviderAcceptStreamAsync (CancellationToken cancellationToken=default(CancellationToken))
 
override ValueTask WaitForAvailableUnidirectionalStreamsAsync (CancellationToken cancellationToken=default(CancellationToken))
 
override ValueTask WaitForAvailableBidirectionalStreamsAsync (CancellationToken cancellationToken=default(CancellationToken))
 
override QuicStreamProvider OpenUnidirectionalStream ()
 
override QuicStreamProvider OpenBidirectionalStream ()
 
override int GetRemoteAvailableUnidirectionalStreamCount ()
 
override int GetRemoteAvailableBidirectionalStreamCount ()
 
unsafe override ValueTask ConnectAsync (CancellationToken cancellationToken=default(CancellationToken))
 
void SetNegotiatedAlpn (IntPtr alpn, int alpnLength)
 
override ValueTask CloseAsync (long errorCode, CancellationToken cancellationToken=default(CancellationToken))
 

Properties

override IPEndPoint LocalEndPoint [get]
 
override EndPoint RemoteEndPoint [get]
 
override X509Certificate RemoteCertificate [get]
 
override SslApplicationProtocol NegotiatedApplicationProtocol [get]
 
override bool Connected [get]
 

Private Member Functions

ValueTask ShutdownAsync (QUIC_CONNECTION_SHUTDOWN_FLAGS Flags, long ErrorCode)
 
 ~MsQuicConnection ()
 
async Task FlushAcceptQueue ()
 
void Dispose (bool disposing)
 
void ThrowIfDisposed ()
 

Static Private Member Functions

static uint HandleEventConnected (State state, ref MsQuicNativeMethods.ConnectionEvent connectionEvent)
 
static uint HandleEventShutdownInitiatedByTransport (State state, ref MsQuicNativeMethods.ConnectionEvent connectionEvent)
 
static uint HandleEventShutdownInitiatedByPeer (State state, ref MsQuicNativeMethods.ConnectionEvent connectionEvent)
 
static uint HandleEventShutdownComplete (State state, ref MsQuicNativeMethods.ConnectionEvent connectionEvent)
 
static uint HandleEventNewStream (State state, ref MsQuicNativeMethods.ConnectionEvent connectionEvent)
 
static uint HandleEventStreamsAvailable (State state, ref MsQuicNativeMethods.ConnectionEvent connectionEvent)
 
static unsafe uint HandleEventPeerCertificateReceived (State state, ref MsQuicNativeMethods.ConnectionEvent connectionEvent)
 
static uint NativeCallbackHandler (IntPtr connection, IntPtr context, ref MsQuicNativeMethods.ConnectionEvent connectionEvent)
 

Private Attributes

SafeMsQuicConfigurationHandle _configuration
 
readonly State _state = new State()
 
int _disposed
 
IPEndPoint _localEndPoint
 
readonly EndPoint _remoteEndPoint
 
SslApplicationProtocol _negotiatedAlpnProtocol
 

Static Private Attributes

static readonly Oid s_clientAuthOid = new Oid("1.3.6.1.5.5.7.3.2", "1.3.6.1.5.5.7.3.2")
 
static readonly Oid s_serverAuthOid = new Oid("1.3.6.1.5.5.7.3.1", "1.3.6.1.5.5.7.3.1")
 
static readonly MsQuicNativeMethods.ConnectionCallbackDelegate s_connectionDelegate = NativeCallbackHandler
 

Detailed Description

Definition at line 15 of file MsQuicConnection.cs.


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