C# Class PiStrom.Http.Server

Represents the Server used to handle the incoming requests.
ファイルを表示 Open project: Banasen/PiStrom Class Usage Examples

Public Methods

Method Description
Server ( IPAddress allowedAdresses, int port, DirectoryInfo rootDirectory ) : System

Initializes a new instance of the Server Class.

Start ( ) : void
Stop ( ) : void

Private Methods

Method Description
onConnection ( TcpClient client ) : void
server_Connection ( TcpClient client, CancellationToken cancellationToken ) : void

Handles the incoming connections.

Method Details

Server() public method

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
return System

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void