Alchemy Websockets
An extremely efficient C# WebSocket server.
Alchemy.Handlers.WebSocket.hybi00.ClientHandshake Class Reference

An easy wrapper for the header to access client handshake data. See http://www.whatwg.org/specs/web-socket-protocol/ for more details on the WebSocket Protocol. More...

List of all members.

Public Member Functions

 ClientHandshake ()
 ClientHandshake (ArraySegment< byte > challengeBytes, Header header)
 Initializes a new instance of the ClientHandshake class.
bool IsValid ()
 Determines whether this instance is valid.
override string ToString ()
 Returns a System.String that represents this instance.

Public Attributes

string Host = String.Empty
string Key1 = String.Empty
string Key2 = String.Empty
string Origin = String.Empty
string ResourcePath = String.Empty

Properties

ArraySegment< byte > ChallengeBytes [get, set]
HttpCookieCollection Cookies [get, set]
string SubProtocol [get, set]
Dictionary< string, string > AdditionalFields [get, set]

Detailed Description

An easy wrapper for the header to access client handshake data. See http://www.whatwg.org/specs/web-socket-protocol/ for more details on the WebSocket Protocol.

Definition at line 13 of file Handshakes.cs.


Constructor & Destructor Documentation

Alchemy.Handlers.WebSocket.hybi00.ClientHandshake.ClientHandshake ( ArraySegment< byte >  challengeBytes,
Header  header 
)

Initializes a new instance of the ClientHandshake class.

Parameters:
challengeBytesThe challenge bytes.
headerThe header.

Definition at line 42 of file Handshakes.cs.


Member Function Documentation

Determines whether this instance is valid.

Returns:
true if this instance is valid; otherwise, false.

Definition at line 65 of file Handshakes.cs.

Returns a System.String that represents this instance.

Returns:
A System.String that represents this instance.

Definition at line 82 of file Handshakes.cs.


Member Data Documentation

Definition at line 28 of file Handshakes.cs.

Definition at line 29 of file Handshakes.cs.

Definition at line 30 of file Handshakes.cs.

Definition at line 31 of file Handshakes.cs.

Definition at line 32 of file Handshakes.cs.


Property Documentation

Definition at line 57 of file Handshakes.cs.

Definition at line 54 of file Handshakes.cs.

Definition at line 55 of file Handshakes.cs.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties