C# 클래스 NetMQ.Core.Transports.StreamEngine

상속: IEngine, IProactorEvents, IMsgSink
파일 보기 프로젝트 열기: NetMQ/NetMQ3-x

공개 메소드들

메소드 설명
ActivateIn ( ) : void
ActivateOut ( ) : void
Destroy ( ) : void
InCompleted ( SocketError socketError, int bytesTransferred ) : void

This method is be called when a message receive operation has been completed.

OutCompleted ( SocketError socketError, int bytesTransferred ) : void

This method is called when a message Send operation has been completed.

Plug ( IOThread ioThread, SessionBase session ) : void
PushMsg ( Msg &msg ) : bool
StreamEngine ( AsyncIO.AsyncSocket handle, Options options, string endpoint ) : System
Terminate ( ) : void
TimerEvent ( int id ) : void

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

비공개 메소드들

메소드 설명
Activate ( ) : void
BeginRead ( [ data, int size ) : void
BeginSending ( ) : void
BeginWrite ( [ data, int size ) : void
EndRead ( SocketError socketError, int bytesTransferred ) : int If socketError is SocketError.Success and bytesTransferred is > 0, then this returns bytesTransferred. If bytes is zero, or the socketError is one of NetworkDown, NetworkReset, HostUn, Connection Aborted, TimedOut, or ConnectionReset, - then -1 is returned. Otherwise, a NetMQException is thrown.
EndWrite ( SocketError socketError, int bytesTransferred ) : int If socketError is SocketError.Success and bytesTransferred is > 0, then this returns bytesTransferred. If bytes is zero, or the socketError is one of NetworkDown, NetworkReset, HostUn, Connection Aborted, TimedOut, or ConnectionReset, - then -1 is returned. Otherwise, a NetMQException is thrown.
EnqueueAction ( System.Action action, SocketError socketError, int bytesTransferred ) : void
Error ( ) : void
FeedAction ( System.Action action, SocketError socketError, int bytesTransferred ) : void
Handle ( System.Action action, SocketError socketError, int bytesTransferred ) : void
HandleHandshake ( System.Action action, SocketError socketError, int bytesTransferred ) : void
ProcessInput ( ) : void
Unplug ( ) : void

메소드 상세

ActivateIn() 공개 메소드

public ActivateIn ( ) : void
리턴 void

ActivateOut() 공개 메소드

public ActivateOut ( ) : void
리턴 void

Destroy() 공개 메소드

public Destroy ( ) : void
리턴 void

InCompleted() 공개 메소드

This method is be called when a message receive operation has been completed.
public InCompleted ( SocketError socketError, int bytesTransferred ) : void
socketError SocketError a SocketError value that indicates whether Success or an error occurred
bytesTransferred int the number of bytes that were transferred
리턴 void

OutCompleted() 공개 메소드

This method is called when a message Send operation has been completed.
public OutCompleted ( SocketError socketError, int bytesTransferred ) : void
socketError SocketError a SocketError value that indicates whether Success or an error occurred
bytesTransferred int the number of bytes that were transferred
리턴 void

Plug() 공개 메소드

public Plug ( IOThread ioThread, SessionBase session ) : void
ioThread IOThread
session SessionBase
리턴 void

PushMsg() 공개 메소드

public PushMsg ( Msg &msg ) : bool
msg Msg
리턴 bool

StreamEngine() 공개 메소드

public StreamEngine ( AsyncIO.AsyncSocket handle, Options options, string endpoint ) : System
handle AsyncIO.AsyncSocket
options Options
endpoint string
리턴 System

Terminate() 공개 메소드

public Terminate ( ) : void
리턴 void

TimerEvent() 공개 메소드

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