Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Net.HttpListener Class Referencesealed

Classes

class  DisconnectAsyncResult
 

Public Member Functions

delegate ExtendedProtectionPolicy ExtendedProtectionSelector (HttpListenerRequest request)
 
 HttpListener ()
 
Task< HttpListenerContextGetContextAsync ()
 
void Close ()
 
void Start ()
 
void Stop ()
 
void Abort ()
 
unsafe HttpListenerContext GetContext ()
 
IAsyncResult BeginGetContext (AsyncCallback? callback, object? state)
 
HttpListenerContext EndGetContext (IAsyncResult asyncResult)
 

Package Functions

void AddPrefix (string uriPrefix)
 
bool ContainsPrefix (string uriPrefix)
 
bool RemovePrefix (string uriPrefix)
 
void RemoveAll (bool clear)
 
void CheckDisposed ()
 
unsafe void SetServerTimeout (int[] timeouts, uint minSendBytesPerSecond)
 
unsafe HttpListenerContext HandleAuthentication (HttpListenerSession session, RequestContextBase memoryBlob, out bool stoleBlob)
 
void SetAuthenticationHeaders (HttpListenerContext context)
 

Static Package Functions

static unsafe bool ValidateRequest (HttpListenerSession session, RequestContextBase requestMemory)
 
static bool IsCredentialFailure (System.Net.SecurityStatusPalErrorCode error)
 
static bool IsClientFault (System.Net.SecurityStatusPalErrorCode error)
 
static unsafe ChannelBinding GetChannelBindingFromTls (HttpListenerSession session, ulong connectionId)
 

Package Attributes

Hashtable _uriPrefixes = new Hashtable()
 

Static Package Attributes

static readonly bool SkipIOCPCallbackOnSuccess = Environment.OSVersion.Version >= new Version(6, 2)
 

Properties

ICollection PrefixCollection [get]
 
AuthenticationSchemeSelectorAuthenticationSchemeSelectorDelegate [get, set]
 
ExtendedProtectionSelectorExtendedProtectionSelectorDelegate [get, set]
 
AuthenticationSchemes AuthenticationSchemes [get, set]
 
ExtendedProtectionPolicy ExtendedProtectionPolicy [get, set]
 
ServiceNameCollection DefaultServiceNames [get]
 
HttpListenerPrefixCollection Prefixes [get]
 
stringRealm [get, set]
 
bool IsListening [get]
 
bool IgnoreWriteExceptions [get, set]
 
static bool IsSupported [get]
 
bool UnsafeConnectionNtlmAuthentication [get, set]
 
Dictionary< ulong, DisconnectAsyncResultDisconnectResults [get]
 
HttpListenerTimeoutManager TimeoutManager [get]
 

Private Types

enum  State { Stopped , Started , Closed }
 

Private Member Functions

void IDisposable. Dispose ()
 
void ValidateV2Property ()
 
void SetUrlGroupProperty (global::Interop.HttpApi.HTTP_SERVER_PROPERTY property, IntPtr info, uint infosize)
 
unsafe void SetupV2Config ()
 
void CleanupV2Config ()
 
unsafe void AttachRequestQueueToUrlGroup ()
 
unsafe void DetachRequestQueueFromUrlGroup ()
 
void CreateRequestQueueHandle ()
 
void CloseRequestQueueHandle ()
 
void Dispose ()
 
void RemovePrefixCore (string uriPrefix)
 
void AddAllPrefixes ()
 
void AddPrefixCore (string registeredPrefix)
 
ChannelBinding GetChannelBinding (HttpListenerSession session, ulong connectionId, bool isSecureConnection, ExtendedProtectionPolicy policy)
 
bool CheckSpn (System.Net.NTAuthentication context, bool isSecureConnection, ExtendedProtectionPolicy policy)
 
ServiceNameCollection GetServiceNames (ExtendedProtectionPolicy policy)
 
System.Net.ContextFlagsPal GetContextFlags (ExtendedProtectionPolicy policy, bool isSecureConnection)
 
HttpStatusCode HttpStatusFromSecurityStatus (System.Net.SecurityStatusPalErrorCode statusErrorCode)
 
ArrayList BuildChallenge (AuthenticationSchemes authenticationScheme, ulong connectionId, out System.Net.NTAuthentication newContext, ExtendedProtectionPolicy policy, bool isSecureConnection)
 

Static Private Member Functions

static void FreeContext (ref HttpListenerContext httpContext, RequestContextBase memoryBlob)
 
static bool ScenarioChecksChannelBinding (bool isSecureConnection, ProtectionScenario scenario)
 
static void AddChallenge (ref ArrayList challenges, string challenge)
 
static unsafe void RegisterForDisconnectNotification (HttpListenerSession session, ulong connectionId, ref DisconnectAsyncResult disconnectResult)
 
static unsafe void SendError (HttpListenerSession session, ulong requestId, HttpStatusCode httpStatusCode, ArrayList challenges)
 
static unsafe int GetTokenOffsetFromBlob (IntPtr blob)
 
static unsafe int GetTokenSizeFromBlob (IntPtr blob)
 

Private Attributes

readonly object _internalLock
 
volatile State _state
 
readonly HttpListenerPrefixCollection _prefixes
 
bool _ignoreWriteExceptions
 
readonly ServiceNameStore _defaultServiceNames
 
readonly HttpListenerTimeoutManager _timeoutManager
 
ExtendedProtectionPolicy _extendedProtectionPolicy
 
AuthenticationSchemeSelector _authenticationDelegate
 
AuthenticationSchemes _authenticationScheme = AuthenticationSchemes.Anonymous
 
ExtendedProtectionSelector _extendedProtectionSelectorDelegate
 
string _realm
 
HttpListenerSession _currentSession
 
bool _unsafeConnectionNtlmAuthentication
 
HttpServerSessionHandle _serverSessionHandle
 
ulong _urlGroupId
 
bool _V2Initialized
 
Dictionary< ulong, DisconnectAsyncResult_disconnectResults
 

Static Private Attributes

static readonly byte[] s_wwwAuthenticateBytes
 

Detailed Description

Definition at line 17 of file HttpListener.cs.


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