C# Class Brunet.Transport.WrapperEdge

Provides a Wrapper for edges, this allows us to control input, output, and state of the edge. This class is thread-safe.
Inheritance: Edge, IDataHandler
Afficher le fichier Open project: pstjuste/brunet Class Usage Examples

Protected Properties

Свойство Type Description
_edge Edge

Méthodes publiques

Méthode Description
Close ( ) : bool
HandleData ( MemBlock b, ISender return_path, object state ) : void

We automatically push all data to the listener of this edge.

Send ( ICopyable p ) : void

Sends the data over the underlying edge.

ToString ( ) : string
WrapperEdge ( Edge edge ) : System
WrapperEdge ( Edge edge, bool SubscribeToEdge ) : System

Method Details

Close() public méthode

public Close ( ) : bool
Résultat bool

HandleData() public méthode

We automatically push all data to the listener of this edge.
public HandleData ( MemBlock b, ISender return_path, object state ) : void
b Brunet.Util.MemBlock
return_path ISender
state object
Résultat void

Send() public méthode

Sends the data over the underlying edge.
public Send ( ICopyable p ) : void
p ICopyable
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

WrapperEdge() public méthode

public WrapperEdge ( Edge edge ) : System
edge Edge
Résultat System

WrapperEdge() public méthode

public WrapperEdge ( Edge edge, bool SubscribeToEdge ) : System
edge Edge The edge to wrap.
SubscribeToEdge bool Should this subscribe to the edge.
Résultat System

Property Details

_edge protected_oe property

protected Edge _edge
Résultat Edge