C# 클래스 PiStrom.Http.Server

Represents the Server used to handle the incoming requests.
파일 보기 프로젝트 열기: Banasen/PiStrom 1 사용 예제들

공개 메소드들

메소드 설명
Server ( IPAddress allowedAdresses, int port, DirectoryInfo rootDirectory ) : System

Initializes a new instance of the Server Class.

Start ( ) : void
Stop ( ) : void

비공개 메소드들

메소드 설명
onConnection ( TcpClient client ) : void
server_Connection ( TcpClient client, CancellationToken cancellationToken ) : void

Handles the incoming connections.

메소드 상세

Server() 공개 메소드

Initializes a new instance of the Server Class.
public Server ( IPAddress allowedAdresses, int port, DirectoryInfo rootDirectory ) : System
allowedAdresses System.Net.IPAddress The address or address types that are allowed to connect.
port int The port the server should listen on.
rootDirectory System.IO.DirectoryInfo
리턴 System

Start() 공개 메소드

public Start ( ) : void
리턴 void

Stop() 공개 메소드

public Stop ( ) : void
리턴 void