C# Class Webserver.Server

Main class of NeonMika.Webserver
Mostrar archivo Open project: h07r0d/Netduino-Aquarium-Controller

Public Methods

Method Description
AddResponse ( Response response ) : void

Adds a Response

RemoveResponse ( String ResponseName ) : void

Removes a Response

Server ( int portNumber = 80, bool DhcpEnable = true, string ipAddress = "", string subnetMask = "", string gatewayAddress = "" ) : System

Creates an NeonMika.Webserver instance

Start ( ) : void

Start the webserver thread

Stop ( ) : void

Stop the webserver thread

Private Methods

Method Description
HandleGETResponses ( Request e ) : void

Checks what Response has to be executed. It compares the requested page URL with the URL set for the coded responses

ResponseListInitialize ( ) : void

Initialize the basic functionalities of the webserver

SaveConfig ( Request e, Object ret ) : void

Store config var from browser down onto SD Card and restart the device.

WaitingForRequest ( ) : void

Waiting for client to connect. When bytes were read they get wrapped to a "Reqeust"

Method Details

AddResponse() public method

Adds a Response
public AddResponse ( Response response ) : void
response Response XMLResponse that has to be added
return void

RemoveResponse() public method

Removes a Response
public RemoveResponse ( String ResponseName ) : void
ResponseName String XMLResponse that has to be deleted
return void

Server() public method

Creates an NeonMika.Webserver instance
public Server ( int portNumber = 80, bool DhcpEnable = true, string ipAddress = "", string subnetMask = "", string gatewayAddress = "" ) : System
portNumber int The port to listen for incoming requests
DhcpEnable bool
ipAddress string
subnetMask string
gatewayAddress string
return System

Start() public method

Start the webserver thread
public Start ( ) : void
return void

Stop() public method

Stop the webserver thread
public Stop ( ) : void
return void