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
파일 보기 프로젝트 열기: blinemedical/NWebREST 1 사용 예제들

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