C# Класс HappyFunTimes.HFTWebServerUtils

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

GetGameFile() публичный Метод

public GetGameFile ( string path, byte &content ) : bool
path string
content byte
Результат bool

HFTWebServerUtils() публичный Метод

public HFTWebServerUtils ( string gamePath ) : System
gamePath string
Результат System

SendContent() публичный Метод

public SendContent ( WebSocketSharp.Net.HttpListenerResponse res, string path, byte content ) : void
res WebSocketSharp.Net.HttpListenerResponse
path string
content byte
Результат void

SendContent() публичный Метод

public SendContent ( WebSocketSharp.Net.HttpListenerResponse res, string path, string content ) : void
res WebSocketSharp.Net.HttpListenerResponse
path string
content string
Результат void

SendFile() публичный Метод

public SendFile ( string path, WebSocketSharp.Net.HttpListenerRequest req, WebSocketSharp.Net.HttpListenerResponse res ) : bool
path string
req WebSocketSharp.Net.HttpListenerRequest
res WebSocketSharp.Net.HttpListenerResponse
Результат bool

SendJsonBytes() публичный Метод

public SendJsonBytes ( WebSocketSharp.Net.HttpListenerResponse res, byte data ) : void
res WebSocketSharp.Net.HttpListenerResponse
data byte
Результат void