C# Class NetMQ.Core.Transports.Tcp.TcpListener

Inheritance: Own, IProactorEvents
Afficher le fichier Open project: somdoron/netmq Class Usage Examples

Private Properties

Свойство Type Description
Accept void
Close void
IProactorEvents void

Méthodes publiques

Méthode Description
Destroy ( ) : void

Release any contained resources (here - does nothing).

InCompleted ( SocketError socketError, int bytesTransferred ) : void

This is called when socket input has been completed.

SetAddress ( [ addr ) : void

Set address to listen on.

TcpListener ( [ ioThread, [ socket, [ options ) : System

Create a new TcpListener on the given IOThread and socket.

TimerEvent ( int id ) : void

This would be called when a timer expires, although here it only throws a NotSupportedException.

Méthodes protégées

Méthode Description
ProcessPlug ( ) : void
ProcessTerm ( int linger ) : void

Process a termination request.

Private Methods

Méthode Description
Accept ( ) : void
Close ( ) : void

Close the listening socket.

IProactorEvents ( SocketError socketError, int bytesTransferred ) : void

This method would be called when a message Send operation has been completed - except in this case it simply throws a NotImplementedException.

Method Details

Destroy() public méthode

Release any contained resources (here - does nothing).
public Destroy ( ) : void
Résultat void

InCompleted() public méthode

This is called when socket input has been completed.
A non-recoverable socket-error occurred.
public InCompleted ( SocketError socketError, int bytesTransferred ) : void
socketError SocketError This indicates the status of the input operation - whether Success or some error.
bytesTransferred int the number of bytes that were transferred
Résultat void

ProcessPlug() protected méthode

protected ProcessPlug ( ) : void
Résultat void

ProcessTerm() protected méthode

Process a termination request.
protected ProcessTerm ( int linger ) : void
linger int a time (in milliseconds) for this to linger before actually going away. -1 means infinite.
Résultat void

SetAddress() public méthode

Set address to listen on.
public SetAddress ( [ addr ) : void
addr [ a string denoting the address to set this to
Résultat void

TcpListener() public méthode

Create a new TcpListener on the given IOThread and socket.
public TcpListener ( [ ioThread, [ socket, [ options ) : System
ioThread [ the IOThread for this to live within
socket [ a SocketBase to listen on
options [ socket-related Options
Résultat System

TimerEvent() public méthode

This would be called when a timer expires, although here it only throws a NotSupportedException.
TimerEvent is not supported on TcpListener.
public TimerEvent ( int id ) : void
id int an integer used to identify the timer (not used here)
Résultat void