Property | Type | Description | |
---|---|---|---|
DataAvailable | Task |
||
DecodeSocket | string | ||
EncodeSocket | Byte[] | ||
GetUserIDFromCookie | void | ||
OnClose | void | ||
OnError | void | ||
OnMessage | bool | ||
OnOpen | void | ||
Send | void | ||
SendPing | void | ||
StartLoop | void | ||
ValidateUser | void | ||
WriteData | void |
Method | Description | |
---|---|---|
Descriptor ( |
Creates an instance of the command negotiator
|
|
Descriptor ( |
Creates an instance of the command negotiator with a specified user manager
|
|
Disconnect ( string finalMessage ) : void |
Disconnects the client socket
|
|
Open ( ) : void |
Open the socket, the client gets set up in the constructor
|
|
SendWrapper ( IEnumerable |
Wraps sending messages to the connected descriptor
|
|
SendWrapper ( string str ) : bool |
Wraps sending messages to the connected descriptor
|
Method | Description | |
---|---|---|
DataAvailable ( |
Just sits on the stream waiting for a messgae to be sent
|
|
DecodeSocket ( byte buffer ) : string |
Decodes WS headers and data from the stream
|
|
EncodeSocket ( string message ) : Byte[] |
Encodes string messages into ws socket language
|
|
GetUserIDFromCookie ( string authTicketValue ) : void |
Gets the user ID from the web from the aspnet cookie
|
|
OnClose ( ) : void |
Handles when the connection closes
|
|
OnError ( |
Handles when the connection faults
|
|
OnMessage ( string message ) : bool |
Handles when the connected descriptor sends input
|
|
OnOpen ( ) : void |
Handles initial connection
|
|
Send ( string message ) : void |
Begins the send process for putting data into the socket stream
|
|
SendPing ( ) : void |
Ping the client for keepalive
|
|
StartLoop ( bool>.Func |
Handles the wait loop for accepting input from the socket
|
|
ValidateUser ( string handshake ) : void |
Validates the game account from the aspnet cookie
|
|
WriteData ( IAsyncResult result ) : void |
Ends the send loop
|
public Descriptor ( |
||
tcpClient | ||
return | Microsoft.AspNet.Identity |
public Descriptor ( |
||
tcpClient | ||
userManager | ApplicationUserManager | the authentication manager from the web |
return | Microsoft.AspNet.Identity |
public Disconnect ( string finalMessage ) : void | ||
finalMessage | string | the final string data to send the socket before closing it |
return | void |
public SendWrapper ( IEnumerable |
||
strings | IEnumerable |
the output |
return | bool |
public SendWrapper ( string str ) : bool | ||
str | string | the output |
return | bool |