C# Class OakBot.SimpleHTTPServer

Afficher le fichier Open project: ocgineer/OakBot Class Usage Examples

Méthodes publiques

Méthode Description
SimpleHTTPServer ( string path ) : System

Construct server with suitable port.

SimpleHTTPServer ( string path, int port ) : System

Construct server with given port.

Stop ( ) : void

Stop server and dispose all functions.

Private Methods

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

Method Details

SimpleHTTPServer() public méthode

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

SimpleHTTPServer() public méthode

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

Stop() public méthode

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