EGDL2 2.1
Loading...
Searching...
No Matches
WebSocketSharp.Net.WebSockets.WebSocketContext Class Referenceabstract

Exposes the properties used to access the information in a WebSocket connection request. More...

Inheritance diagram for WebSocketSharp.Net.WebSockets.WebSocketContext:

Protected Member Functions

 WebSocketContext ()
 Initializes a new instance of the WebSocketContext class.
 

Properties

CookieCollection CookieCollection [get]
 Gets the HTTP cookies included in the request.
 
NameValueCollection Headers [get]
 Gets the HTTP headers included in the request.
 
string Host [get]
 Gets the value of the Host header included in the request.
 
bool IsAuthenticated [get]
 Gets a value indicating whether the client is authenticated.
 
bool IsLocal [get]
 Gets a value indicating whether the client connected from the local computer.
 
bool IsSecureConnection [get]
 Gets a value indicating whether the WebSocket connection is secured.
 
bool IsWebSocketRequest [get]
 Gets a value indicating whether the request is a WebSocket connection request.
 
string Origin [get]
 Gets the value of the Origin header included in the request.
 
NameValueCollection QueryString [get]
 Gets the query string included in the request.
 
Uri RequestUri [get]
 Gets the URI requested by the client.
 
string SecWebSocketKey [get]
 Gets the value of the Sec-WebSocket-Key header included in the request.
 
IEnumerable< string > SecWebSocketProtocols [get]
 Gets the values of the Sec-WebSocket-Protocol header included in the request.
 
string SecWebSocketVersion [get]
 Gets the value of the Sec-WebSocket-Version header included in the request.
 
System.Net.IPEndPoint ServerEndPoint [get]
 Gets the server endpoint as an IP address and a port number.
 
IPrincipal User [get]
 Gets the client information (identity, authentication, and security roles).
 
System.Net.IPEndPoint UserEndPoint [get]
 Gets the client endpoint as an IP address and a port number.
 
WebSocket WebSocket [get]
 Gets the WebSocketSharp.WebSocket instance used for two-way communication between client and server.
 

Detailed Description

Exposes the properties used to access the information in a WebSocket connection request.

The WebSocketContext class is an abstract class.

Property Documentation

◆ CookieCollection

CookieCollection WebSocketSharp.Net.WebSockets.WebSocketContext.CookieCollection
getabstract

Gets the HTTP cookies included in the request.

A WebSocketSharp.Net.CookieCollection that contains the cookies.

◆ Headers

NameValueCollection WebSocketSharp.Net.WebSockets.WebSocketContext.Headers
getabstract

Gets the HTTP headers included in the request.

A NameValueCollection that contains the headers.

◆ Host

string WebSocketSharp.Net.WebSockets.WebSocketContext.Host
getabstract

Gets the value of the Host header included in the request.

A string that represents the value of the Host header.

◆ IsAuthenticated

bool WebSocketSharp.Net.WebSockets.WebSocketContext.IsAuthenticated
getabstract

Gets a value indicating whether the client is authenticated.

true if the client is authenticated; otherwise, false.

◆ IsLocal

bool WebSocketSharp.Net.WebSockets.WebSocketContext.IsLocal
getabstract

Gets a value indicating whether the client connected from the local computer.

true if the client connected from the local computer; otherwise, false.

◆ IsSecureConnection

bool WebSocketSharp.Net.WebSockets.WebSocketContext.IsSecureConnection
getabstract

Gets a value indicating whether the WebSocket connection is secured.

true if the connection is secured; otherwise, false.

◆ IsWebSocketRequest

bool WebSocketSharp.Net.WebSockets.WebSocketContext.IsWebSocketRequest
getabstract

Gets a value indicating whether the request is a WebSocket connection request.

true if the request is a WebSocket connection request; otherwise, false.

◆ Origin

string WebSocketSharp.Net.WebSockets.WebSocketContext.Origin
getabstract

Gets the value of the Origin header included in the request.

A string that represents the value of the Origin header.

◆ QueryString

NameValueCollection WebSocketSharp.Net.WebSockets.WebSocketContext.QueryString
getabstract

Gets the query string included in the request.

A NameValueCollection that contains the query string parameters.

◆ RequestUri

Uri WebSocketSharp.Net.WebSockets.WebSocketContext.RequestUri
getabstract

Gets the URI requested by the client.

A Uri that represents the requested URI.

◆ SecWebSocketKey

string WebSocketSharp.Net.WebSockets.WebSocketContext.SecWebSocketKey
getabstract

Gets the value of the Sec-WebSocket-Key header included in the request.

This property provides a part of the information used by the server to prove that it received a valid WebSocket connection request.

A string that represents the value of the Sec-WebSocket-Key header.

◆ SecWebSocketProtocols

IEnumerable<string> WebSocketSharp.Net.WebSockets.WebSocketContext.SecWebSocketProtocols
getabstract

Gets the values of the Sec-WebSocket-Protocol header included in the request.

This property represents the subprotocols requested by the client.

An T:System.Collections.Generic.IEnumerable<string> instance that provides an enumerator which supports the iteration over the values of the Sec-WebSocket-Protocol header.

◆ SecWebSocketVersion

string WebSocketSharp.Net.WebSockets.WebSocketContext.SecWebSocketVersion
getabstract

Gets the value of the Sec-WebSocket-Version header included in the request.

This property represents the WebSocket protocol version.

A string that represents the value of the Sec-WebSocket-Version header.

◆ ServerEndPoint

System.Net.IPEndPoint WebSocketSharp.Net.WebSockets.WebSocketContext.ServerEndPoint
getabstract

Gets the server endpoint as an IP address and a port number.

A System.Net.IPEndPoint that represents the server endpoint.

◆ User

IPrincipal WebSocketSharp.Net.WebSockets.WebSocketContext.User
getabstract

Gets the client information (identity, authentication, and security roles).

A IPrincipal that represents the client information.

◆ UserEndPoint

System.Net.IPEndPoint WebSocketSharp.Net.WebSockets.WebSocketContext.UserEndPoint
getabstract

Gets the client endpoint as an IP address and a port number.

A System.Net.IPEndPoint that represents the client endpoint.

◆ WebSocket

WebSocket WebSocketSharp.Net.WebSockets.WebSocketContext.WebSocket
getabstract

Gets the WebSocketSharp.WebSocket instance used for two-way communication between client and server.

A WebSocketSharp.WebSocket.


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