C# Class UlteriusServer.WebServer.HttpServer

Afficher le fichier Open project: Ulterius/server Class Usage Examples

Méthodes publiques

Свойство Type Description
DefaultPath string
GlobalPort int

Méthodes publiques

Méthode Description
HttpServer ( string path ) : System

Construct server with suitable port.

HttpServer ( string path, int port ) : System

Construct server with given port.

SaveFile ( string fileKey, byte data ) : bool
Setup ( ) : void
Stop ( ) : void

Stop server and dispose all functions.

Private Methods

Méthode Description
HandleUpload ( HttpListenerContext context ) : void
Initialize ( string path, int port ) : void
Listen ( ) : void
Process ( HttpListenerContext context ) : void

Method Details

HttpServer() public méthode

Construct server with suitable port.
public HttpServer ( string path ) : System
path string Directory path to serve.
Résultat System

HttpServer() public méthode

Construct server with given port.
public HttpServer ( string path, int port ) : System
path string Directory path to serve.
port int Port of the server.
Résultat System

SaveFile() public méthode

public SaveFile ( string fileKey, byte data ) : bool
fileKey string
data byte
Résultat bool

Setup() public static méthode

public static Setup ( ) : void
Résultat void

Stop() public méthode

Stop server and dispose all functions.
public Stop ( ) : void
Résultat void

Property Details

DefaultPath public_oe static_oe property

public static string DefaultPath
Résultat string

GlobalPort public_oe static_oe property

public static int GlobalPort
Résultat int