C# Class WireBus.WireBusListener

A listener for receiving incoming WireBus.NET connections.
Inheritance: IDisposable
Afficher le fichier Open project: bytenik/WireBus.NET

Méthodes publiques

Méthode Description
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

Method Details

AcceptWireBusAsync() public méthode

Accept a new WireBus client.
public AcceptWireBusAsync ( ) : Task
Résultat Task

AcceptWireBusAsync() public méthode

Accept a new WireBus client.
public AcceptWireBusAsync ( CancellationToken token ) : Task
token System.Threading.CancellationToken
Résultat Task

AcceptWireBusAsync() public méthode

Accept a new WireBus client.
public AcceptWireBusAsync ( System.TimeSpan timeout ) : Task
timeout System.TimeSpan
Résultat Task

AcceptWireBusAsync() public méthode

Accept a new WireBus client.
public AcceptWireBusAsync ( System.TimeSpan timeout, CancellationToken token ) : Task
timeout System.TimeSpan
token System.Threading.CancellationToken
Résultat Task

AcceptWireBusAsync() public méthode

Accept a new WireBus client.
public AcceptWireBusAsync ( int timeoutMilliseconds ) : Task
timeoutMilliseconds int
Résultat Task

Dispose() public méthode

Dispose of the listener
public Dispose ( ) : void
Résultat void

Start() public méthode

Start listening for new connections.
public Start ( ) : void
Résultat void

Stop() public méthode

Stop listening for connections.
public Stop ( ) : void
Résultat void

WireBusListener() public méthode

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
Résultat System

WireBusListener() public méthode

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
Résultat System

WireBusListener() public méthode

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
Résultat System