C# Class WireBus.WireBusListener

A listener for receiving incoming WireBus.NET connections.
Inheritance: IDisposable
显示文件 Open project: bytenik/WireBus.NET

Public Methods

Method 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 method

Accept a new WireBus client.
public AcceptWireBusAsync ( ) : Task
return Task

AcceptWireBusAsync() public method

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

AcceptWireBusAsync() public method

Accept a new WireBus client.
public AcceptWireBusAsync ( System.TimeSpan timeout ) : Task
timeout System.TimeSpan
return Task

AcceptWireBusAsync() public method

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

AcceptWireBusAsync() public method

Accept a new WireBus client.
public AcceptWireBusAsync ( int timeoutMilliseconds ) : Task
timeoutMilliseconds int
return Task

Dispose() public method

Dispose of the listener
public Dispose ( ) : void
return void

Start() public method

Start listening for new connections.
public Start ( ) : void
return void

Stop() public method

Stop listening for connections.
public Stop ( ) : void
return void

WireBusListener() public method

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

WireBusListener() public method

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

WireBusListener() public method

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