C# Class HappyFunTimes.HFTWebServerUtils

Mostrar archivo Open project: greggman/hft-unity-gamepad Class Usage Examples

Public Methods

Method 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 method

public GetGameFile ( string path, byte &content ) : bool
path string
content byte
return bool

HFTWebServerUtils() public method

public HFTWebServerUtils ( string gamePath ) : System
gamePath string
return System

SendContent() public method

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

SendContent() public method

public SendContent ( WebSocketSharp.Net.HttpListenerResponse res, string path, string content ) : void
res WebSocketSharp.Net.HttpListenerResponse
path string
content string
return void

SendFile() public method

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

SendJsonBytes() public method

public SendJsonBytes ( WebSocketSharp.Net.HttpListenerResponse res, byte data ) : void
res WebSocketSharp.Net.HttpListenerResponse
data byte
return void