C# Class UOJS.Network.GameProxy

A class containing the WebSocket proxy layer
Afficher le fichier Open project: kevinhikaruevans/uojs Class Usage Examples

Méthodes publiques

Свойство Type Description
m_Widths byte[]>.Dictionary

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
HandleFileSystemChange ( object sender, FileSystemEventArgs e ) : void
Listen ( ) : void

Begins listening.

LoadFile ( string fileName ) : void

Method Details

AcceptCallback() public static méthode

public static AcceptCallback ( IAsyncResult ar ) : void
ar IAsyncResult
Résultat void

BeginListening() public static méthode

Begins listening on a new thread.
public static BeginListening ( ) : void
Résultat void

CreateHeaders() public static méthode

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.
Résultat RequestType

HandleFileSystemChange() protected static méthode

protected static HandleFileSystemChange ( object sender, FileSystemEventArgs e ) : void
sender object
e System.IO.FileSystemEventArgs
Résultat void

Initialize() public static méthode

Initialize this instance.
public static Initialize ( ) : void
Résultat void

InitializeFiles() public static méthode

public static InitializeFiles ( ) : bool
Résultat bool

Listen() protected static méthode

Begins listening.
protected static Listen ( ) : void
Résultat void

LoadFile() protected static méthode

protected static LoadFile ( string fileName ) : void
fileName string
Résultat void

OnReceiveFromWebSocket() public static méthode

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

ParseVars() public static méthode

public static ParseVars ( string uri ) : string>.Dictionary
uri string
Résultat string>.Dictionary

ParseWebRequest() public static méthode

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

ReadCallback() public static méthode

public static ReadCallback ( IAsyncResult ar ) : void
ar IAsyncResult
Résultat void

Send() public static méthode

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

Send() public static méthode

public static Send ( UOJS.WebSocketClient client, string format ) : void
client UOJS.WebSocketClient
format string
Résultat void

SendCallback() public static méthode

public static SendCallback ( IAsyncResult ar ) : void
ar IAsyncResult
Résultat void

UOConnectCallback() public static méthode

public static UOConnectCallback ( IAsyncResult ar ) : void
ar IAsyncResult
Résultat void

UOReceiveCallback() public static méthode

public static UOReceiveCallback ( IAsyncResult ar ) : void
ar IAsyncResult
Résultat void

UOSendCallback() public static méthode

public static UOSendCallback ( IAsyncResult ar ) : void
ar IAsyncResult
Résultat void

WebSendCallback() public static méthode

public static WebSendCallback ( IAsyncResult ar ) : void
ar IAsyncResult
Résultat void

Property Details

m_Widths public_oe static_oe property

public static Dictionary m_Widths
Résultat byte[]>.Dictionary