C# Class HappyFunTimes.HFTWebServerUtils

Afficher le fichier Open project: greggman/hft-unity-gamepad Class Usage Examples

Méthodes publiques

Méthode Description
GetGameFile ( string path, byte &content ) : bool
HFTWebServerUtils ( string gamePath ) : System
SendContent ( WebSocketSharp.Net.HttpListenerResponse res, string path, byte content ) : void
SendContent ( WebSocketSharp.Net.HttpListenerResponse res, string path, string content ) : void
SendFile ( string path, WebSocketSharp.Net.HttpListenerRequest req, WebSocketSharp.Net.HttpListenerResponse res ) : bool
SendJsonBytes ( WebSocketSharp.Net.HttpListenerResponse res, byte data ) : void

Method Details

GetGameFile() public méthode

public GetGameFile ( string path, byte &content ) : bool
path string
content byte
Résultat bool

HFTWebServerUtils() public méthode

public HFTWebServerUtils ( string gamePath ) : System
gamePath string
Résultat System

SendContent() public méthode

public SendContent ( WebSocketSharp.Net.HttpListenerResponse res, string path, byte content ) : void
res WebSocketSharp.Net.HttpListenerResponse
path string
content byte
Résultat void

SendContent() public méthode

public SendContent ( WebSocketSharp.Net.HttpListenerResponse res, string path, string content ) : void
res WebSocketSharp.Net.HttpListenerResponse
path string
content string
Résultat void

SendFile() public méthode

public SendFile ( string path, WebSocketSharp.Net.HttpListenerRequest req, WebSocketSharp.Net.HttpListenerResponse res ) : bool
path string
req WebSocketSharp.Net.HttpListenerRequest
res WebSocketSharp.Net.HttpListenerResponse
Résultat bool

SendJsonBytes() public méthode

public SendJsonBytes ( WebSocketSharp.Net.HttpListenerResponse res, byte data ) : void
res WebSocketSharp.Net.HttpListenerResponse
data byte
Résultat void