C# Класс PiStrom.Http.Server

Represents the Server used to handle the incoming requests.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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