C# Class ALE.Http.Server

A simple asynchronous web server for ALE.
Inheritance: ServerBase
Mostra file Open project: blesh/ALE

Protected Properties

Property Type Description
Listener System.Net.HttpListener

Public Methods

Method Description
Create ( ) : Server
Listen ( ) : Server

Starts the server listening an any number of URI prefixes.

Stop ( bool stopEventLoop = false ) : void

Stop the server.

Use ( Action>.Action processor ) : Server
Use ( IViewProcessor viewProcessor ) : Server

Private Methods

Method Description
GetContextCallback ( IAsyncResult result ) : void

Async callback for GetContextCallBack in Listen method above.

Server ( ) : System

Creates a new instance of a server.

Method Details

Create() public static method

public static Create ( ) : Server
return Server

Listen() public method

Starts the server listening an any number of URI prefixes.
public Listen ( ) : Server
return Server

Stop() public method

Stop the server.
public Stop ( bool stopEventLoop = false ) : void
stopEventLoop bool
return void

Use() public method

public Use ( Action>.Action processor ) : Server
processor Action>.Action
return Server

Use() public method

public Use ( IViewProcessor viewProcessor ) : Server
viewProcessor IViewProcessor
return Server

Property Details

Listener protected_oe property

The HTTP listener that handles receiving requests.
protected HttpListener,System.Net Listener
return System.Net.HttpListener