C# Класс WireBus.WireBusListener

A listener for receiving incoming WireBus.NET connections.
Наследование: IDisposable
Показать файл Открыть проект

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

Метод Описание
AcceptWireBusAsync ( ) : Task

Accept a new WireBus client.

AcceptWireBusAsync ( CancellationToken token ) : Task

Accept a new WireBus client.

AcceptWireBusAsync ( System.TimeSpan timeout ) : Task

Accept a new WireBus client.

AcceptWireBusAsync ( System.TimeSpan timeout, CancellationToken token ) : Task

Accept a new WireBus client.

AcceptWireBusAsync ( int timeoutMilliseconds ) : Task

Accept a new WireBus client.

Dispose ( ) : void

Dispose of the listener

Start ( ) : void

Start listening for new connections.

Stop ( ) : void

Stop listening for connections.

WireBusListener ( IPAddress address, int port, ConnectionSemantics semantics = newConnectionSemantics() ) : System

Creates a new host configured to listen on the specified IP and port

WireBusListener ( IPEndPoint endpoint, ConnectionSemantics semantics = newConnectionSemantics() ) : System

Creates a new host configured to listen on the specified IP and port

WireBusListener ( int port, ConnectionSemantics semantics = newConnectionSemantics() ) : System

Create a new host configured to listen on all IP addresses with the specified port

Описание методов

AcceptWireBusAsync() публичный Метод

Accept a new WireBus client.
public AcceptWireBusAsync ( ) : Task
Результат Task

AcceptWireBusAsync() публичный Метод

Accept a new WireBus client.
public AcceptWireBusAsync ( CancellationToken token ) : Task
token System.Threading.CancellationToken
Результат Task

AcceptWireBusAsync() публичный Метод

Accept a new WireBus client.
public AcceptWireBusAsync ( System.TimeSpan timeout ) : Task
timeout System.TimeSpan
Результат Task

AcceptWireBusAsync() публичный Метод

Accept a new WireBus client.
public AcceptWireBusAsync ( System.TimeSpan timeout, CancellationToken token ) : Task
timeout System.TimeSpan
token System.Threading.CancellationToken
Результат Task

AcceptWireBusAsync() публичный Метод

Accept a new WireBus client.
public AcceptWireBusAsync ( int timeoutMilliseconds ) : Task
timeoutMilliseconds int
Результат Task

Dispose() публичный Метод

Dispose of the listener
public Dispose ( ) : void
Результат void

Start() публичный Метод

Start listening for new connections.
public Start ( ) : void
Результат void

Stop() публичный Метод

Stop listening for connections.
public Stop ( ) : void
Результат void

WireBusListener() публичный Метод

Creates a new host configured to listen on the specified IP and port
public WireBusListener ( IPAddress address, int port, ConnectionSemantics semantics = newConnectionSemantics() ) : System
address System.Net.IPAddress local address
port int local port
semantics ConnectionSemantics the connection semantics
Результат System

WireBusListener() публичный Метод

Creates a new host configured to listen on the specified IP and port
public WireBusListener ( IPEndPoint endpoint, ConnectionSemantics semantics = newConnectionSemantics() ) : System
endpoint System.Net.IPEndPoint the local endpoint
semantics ConnectionSemantics the connection semantics
Результат System

WireBusListener() публичный Метод

Create a new host configured to listen on all IP addresses with the specified port
public WireBusListener ( int port, ConnectionSemantics semantics = newConnectionSemantics() ) : System
port int the local port
semantics ConnectionSemantics the connection semantics
Результат System