C# 클래스 NetMQ.Core.Transports.Tcp.TcpListener

상속: Own, IProactorEvents
파일 보기 프로젝트 열기: somdoron/netmq 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Accept void
Close void
IProactorEvents void

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
ProcessPlug ( ) : void
ProcessTerm ( int linger ) : void

Process a termination request.

비공개 메소드들

메소드 설명
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.

메소드 상세

Destroy() 공개 메소드

Release any contained resources (here - does nothing).
public Destroy ( ) : void
리턴 void

InCompleted() 공개 메소드

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
리턴 void

ProcessPlug() 보호된 메소드

protected ProcessPlug ( ) : void
리턴 void

ProcessTerm() 보호된 메소드

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.
리턴 void

SetAddress() 공개 메소드

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

TcpListener() 공개 메소드

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
리턴 System

TimerEvent() 공개 메소드

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)
리턴 void