C# 클래스 Webserver.Server

Main class of NeonMika.Webserver
파일 보기 프로젝트 열기: h07r0d/Netduino-Aquarium-Controller

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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"

메소드 상세

AddResponse() 공개 메소드

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

RemoveResponse() 공개 메소드

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

Server() 공개 메소드

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
리턴 System

Start() 공개 메소드

Start the webserver thread
public Start ( ) : void
리턴 void

Stop() 공개 메소드

Stop the webserver thread
public Stop ( ) : void
리턴 void