C# Класс NWebREST.Web.WebServer

Simple multithreaded webserver for Netduino. Lets user register endpoints that can be called on the server. When the server receives a valid command, it fires the EndPointReceived event with details stored in the EndPoinEventArgs parameter. Modifications By: Kjetil Seim Haugen Contact: [email protected] Latest revision: sometime 2016 Modifications By: Anton Kropp Contact: [email protected] Latest revision: 28 november 2012 Original Author: Jasper Schuurmans Contact: [email protected] Latest revision: 06 april 2011
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
GetApiList string
GetStylings string
InterpretRequest EndPoint
ListInterfaces void
PingLed void
SendResponse void
StartServer void
WriteBytes void

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

Метод Описание
RegisterEndPoint ( EndPoint endPoint ) : void
Start ( ) : void

Initialize the multithreaded server.

WebServer ( int port, bool enableLedStatus = true ) : System

Instantiates a new webserver.

Приватные методы

Метод Описание
GetApiList ( ) : string
GetStylings ( ) : string
InterpretRequest ( string rawData ) : EndPoint

Parses a raw web request and filters out the command and arguments.

ListInterfaces ( ) : void
PingLed ( ) : void
SendResponse ( string response, Socket connection ) : void
StartServer ( ) : void

Starts the server.

WriteBytes ( byte bytes, Socket connection ) : void

Описание методов

RegisterEndPoint() публичный Метод

public RegisterEndPoint ( EndPoint endPoint ) : void
endPoint EndPoint
Результат void

Start() публичный Метод

Initialize the multithreaded server.
public Start ( ) : void
Результат void

WebServer() публичный Метод

Instantiates a new webserver.
public WebServer ( int port, bool enableLedStatus = true ) : System
port int Port number to listen on.
enableLedStatus bool
Результат System