C# Класс Webserver.Server

Main class of NeonMika.Webserver
Показать файл Открыть проект

Открытые методы

Метод Описание
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