C# Class NetMQ.Core.Patterns.Router

A Router is a subclass of SocketBase
Inheritance: SocketBase
Afficher le fichier Open project: NetMQ/NetMQ3-x

Méthodes publiques

Méthode Description
Destroy ( ) : void
Router ( [ parent, int threadId, int socketId ) : System

Create a new Router instance with the given parent-Ctx, thread-id, and socket-id.

Méthodes protégées

Méthode Description
Rollback ( ) : void
XAttachPipe ( Pipe pipe, bool icanhasall ) : void

Register the pipe with this socket.

XHasIn ( ) : bool
XHasOut ( ) : bool
XReadActivated ( Pipe pipe ) : void

Indicate the given pipe as being ready for reading by this socket.

XRecv ( Msg &msg ) : bool

Receive a message. The Recv method calls this lower-level method to do the actual receiving.

XSend ( Msg &msg ) : bool

Transmit the given message. The Send method calls this to do the actual sending.

XSetSocketOption ( ZmqSocketOption option, object optval ) : bool
XTerminated ( Pipe pipe ) : void

This is an override of the abstract method that gets called to signal that the given pipe is to be removed from this socket.

XWriteActivated ( Pipe pipe ) : void

Indicate the given pipe as being ready for writing to by this socket. This gets called by the WriteActivated method.

Private Methods

Méthode Description
IdentifyPeer ( [ pipe ) : bool

Method Details

Destroy() public méthode

public Destroy ( ) : void
Résultat void

Rollback() protected méthode

protected Rollback ( ) : void
Résultat void

Router() public méthode

Create a new Router instance with the given parent-Ctx, thread-id, and socket-id.
public Router ( [ parent, int threadId, int socketId ) : System
parent [ the Ctx that will contain this Router
threadId int the integer thread-id value
socketId int the integer socket-id value
Résultat System

XAttachPipe() protected méthode

Register the pipe with this socket.
protected XAttachPipe ( Pipe pipe, bool icanhasall ) : void
pipe Pipe the Pipe to attach
icanhasall bool not used
Résultat void

XHasIn() protected méthode

protected XHasIn ( ) : bool
Résultat bool

XHasOut() protected méthode

protected XHasOut ( ) : bool
Résultat bool

XReadActivated() protected méthode

Indicate the given pipe as being ready for reading by this socket.
protected XReadActivated ( Pipe pipe ) : void
pipe Pipe the Pipe that is now becoming available for reading
Résultat void

XRecv() protected méthode

Receive a message. The Recv method calls this lower-level method to do the actual receiving.
protected XRecv ( Msg &msg ) : bool
msg Msg the Msg to receive the message into
Résultat bool

XSend() protected méthode

Transmit the given message. The Send method calls this to do the actual sending.
The receiving host must be identifiable.
protected XSend ( Msg &msg ) : bool
msg Msg the message to transmit
Résultat bool

XSetSocketOption() protected méthode

protected XSetSocketOption ( ZmqSocketOption option, object optval ) : bool
option ZmqSocketOption
optval object
Résultat bool

XTerminated() protected méthode

This is an override of the abstract method that gets called to signal that the given pipe is to be removed from this socket.
protected XTerminated ( Pipe pipe ) : void
pipe Pipe the Pipe that is being removed
Résultat void

XWriteActivated() protected méthode

Indicate the given pipe as being ready for writing to by this socket. This gets called by the WriteActivated method.
protected XWriteActivated ( Pipe pipe ) : void
pipe Pipe the Pipe that is now becoming available for writing
Résultat void