C# Класс NetMQ.Core.Transports.StreamEngine

Наследование: IEngine, IProactorEvents, IMsgSink
Показать файл Открыть проект

Открытые методы

Метод Описание
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