C# 클래스 Incog.Servers.HttpServer

Simple Hypertext Transfer Protocol (HTTP) Web Server.
파일 보기 프로젝트 열기: SimWitty/Incog 1 사용 예제들

공개 메소드들

메소드 설명
HttpGetHandler ( HttpProcessor processor ) : void

The handler for HTTP GET requests.

HttpPostHandler ( HttpProcessor processor ) : void

The handler for HTTP POST requests. TODO: This code has not been tested. It should work, right? I mean, what could possibly go wrong?

HttpServer ( SecureString passphrase ) : System

Initializes a new instance of the HttpServer class.

HttpServer ( SecureString passphrase, IPAddress address, int port ) : System

Initializes a new instance of the HttpServer class.

Start ( ) : void

Begin listening.

Stop ( ) : void

Stop listening

메소드 상세

HttpGetHandler() 공개 메소드

The handler for HTTP GET requests.
public HttpGetHandler ( HttpProcessor processor ) : void
processor HttpProcessor The HTTP processor.
리턴 void

HttpPostHandler() 공개 메소드

The handler for HTTP POST requests. TODO: This code has not been tested. It should work, right? I mean, what could possibly go wrong?
public HttpPostHandler ( HttpProcessor processor ) : void
processor HttpProcessor The HTTP processor.
리턴 void

HttpServer() 공개 메소드

Initializes a new instance of the HttpServer class.
public HttpServer ( SecureString passphrase ) : System
passphrase System.Security.SecureString The passphrase for encrypting and decrypting.
리턴 System

HttpServer() 공개 메소드

Initializes a new instance of the HttpServer class.
public HttpServer ( SecureString passphrase, IPAddress address, int port ) : System
passphrase System.Security.SecureString The passphrase for encrypting and decrypting.
address System.Net.IPAddress Sets the IP address that the server listens on.
port int Sets the TCP/IP Port that the HTTP server listens on.
리턴 System

Start() 공개 메소드

Begin listening.
public Start ( ) : void
리턴 void

Stop() 공개 메소드

Stop listening
public Stop ( ) : void
리턴 void