C# Class NetMQ.Core.Transports.StreamEngine

Inheritance: IEngine, IProactorEvents, IMsgSink
Afficher le fichier Open project: NetMQ/NetMQ3-x

Méthodes publiques

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

Private Methods

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

Method Details

ActivateIn() public méthode

public ActivateIn ( ) : void
Résultat void

ActivateOut() public méthode

public ActivateOut ( ) : void
Résultat void

Destroy() public méthode

public Destroy ( ) : void
Résultat void

InCompleted() public méthode

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

OutCompleted() public méthode

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

Plug() public méthode

public Plug ( IOThread ioThread, SessionBase session ) : void
ioThread IOThread
session SessionBase
Résultat void

PushMsg() public méthode

public PushMsg ( Msg &msg ) : bool
msg Msg
Résultat bool

StreamEngine() public méthode

public StreamEngine ( AsyncIO.AsyncSocket handle, Options options, string endpoint ) : System
handle AsyncIO.AsyncSocket
options Options
endpoint string
Résultat System

Terminate() public méthode

public Terminate ( ) : void
Résultat void

TimerEvent() public méthode

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)
Résultat void