C# Class UOJS.Network.GameProxy

A class containing the WebSocket proxy layer
Datei anzeigen Open project: kevinhikaruevans/uojs Class Usage Examples

Public Properties

Property Type Description
m_Widths byte[]>.Dictionary

Public Methods

Method Description
AcceptCallback ( IAsyncResult ar ) : void
BeginListening ( ) : void

Begins listening on a new thread.

CreateHeaders ( string header, string &sendHeaders, string &shortUri, string &fullUri ) : RequestType

Creates the HTTP headers.

Initialize ( ) : void

Initialize this instance.

InitializeFiles ( ) : bool
OnReceiveFromWebSocket ( UOJS.WebSocketClient client, byte data, int length ) : void
ParseVars ( string uri ) : string>.Dictionary
ParseWebRequest ( UOJS.WebSocketClient client, string shortUri, string fullUri ) : byte[]
ReadCallback ( IAsyncResult ar ) : void
Send ( UOJS.WebSocketClient client, byte data, RequestType type, bool mask ) : void
Send ( UOJS.WebSocketClient client, string format ) : void
SendCallback ( IAsyncResult ar ) : void
UOConnectCallback ( IAsyncResult ar ) : void
UOReceiveCallback ( IAsyncResult ar ) : void
UOSendCallback ( IAsyncResult ar ) : void
WebSendCallback ( IAsyncResult ar ) : void

Protected Methods

Method Description
HandleFileSystemChange ( object sender, FileSystemEventArgs e ) : void
Listen ( ) : void

Begins listening.

LoadFile ( string fileName ) : void

Method Details

AcceptCallback() public static method

public static AcceptCallback ( IAsyncResult ar ) : void
ar IAsyncResult
return void

BeginListening() public static method

Begins listening on a new thread.
public static BeginListening ( ) : void
return void

CreateHeaders() public static method

Creates the HTTP headers.
public static CreateHeaders ( string header, string &sendHeaders, string &shortUri, string &fullUri ) : RequestType
header string The full headers read.
sendHeaders string The headers being sent.
shortUri string The shortened URI.
fullUri string The full URI.
return RequestType

HandleFileSystemChange() protected static method

protected static HandleFileSystemChange ( object sender, FileSystemEventArgs e ) : void
sender object
e System.IO.FileSystemEventArgs
return void

Initialize() public static method

Initialize this instance.
public static Initialize ( ) : void
return void

InitializeFiles() public static method

public static InitializeFiles ( ) : bool
return bool

Listen() protected static method

Begins listening.
protected static Listen ( ) : void
return void

LoadFile() protected static method

protected static LoadFile ( string fileName ) : void
fileName string
return void

OnReceiveFromWebSocket() public static method

public static OnReceiveFromWebSocket ( UOJS.WebSocketClient client, byte data, int length ) : void
client UOJS.WebSocketClient
data byte
length int
return void

ParseVars() public static method

public static ParseVars ( string uri ) : string>.Dictionary
uri string
return string>.Dictionary

ParseWebRequest() public static method

public static ParseWebRequest ( UOJS.WebSocketClient client, string shortUri, string fullUri ) : byte[]
client UOJS.WebSocketClient
shortUri string
fullUri string
return byte[]

ReadCallback() public static method

public static ReadCallback ( IAsyncResult ar ) : void
ar IAsyncResult
return void

Send() public static method

public static Send ( UOJS.WebSocketClient client, byte data, RequestType type, bool mask ) : void
client UOJS.WebSocketClient
data byte
type RequestType
mask bool
return void

Send() public static method

public static Send ( UOJS.WebSocketClient client, string format ) : void
client UOJS.WebSocketClient
format string
return void

SendCallback() public static method

public static SendCallback ( IAsyncResult ar ) : void
ar IAsyncResult
return void

UOConnectCallback() public static method

public static UOConnectCallback ( IAsyncResult ar ) : void
ar IAsyncResult
return void

UOReceiveCallback() public static method

public static UOReceiveCallback ( IAsyncResult ar ) : void
ar IAsyncResult
return void

UOSendCallback() public static method

public static UOSendCallback ( IAsyncResult ar ) : void
ar IAsyncResult
return void

WebSendCallback() public static method

public static WebSendCallback ( IAsyncResult ar ) : void
ar IAsyncResult
return void

Property Details

m_Widths public_oe static_oe property

public static Dictionary m_Widths
return byte[]>.Dictionary