C# Class OakBot.SimpleHTTPServer

ファイルを表示 Open project: ocgineer/OakBot Class Usage Examples

Public Methods

Method 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

Method Description
Initialize ( string path, int port ) : void
Listen ( ) : void
Process ( HttpListenerContext context ) : void

Method Details

SimpleHTTPServer() public method

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

SimpleHTTPServer() public method

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

Stop() public method

Stop server and dispose all functions.
public Stop ( ) : void
return void