C# Class Brunet.Security.PeerSec.Symphony.SecureConnectionHandler

Provides a wrapper around sender objects, obtaining Edges if available, otherwise overlay senders.
Inheritance: Brunet.Services.ConnectionHandler
Datei anzeigen Open project: pstjuste/brunet Class Usage Examples

Protected Properties

Property Type Description
_registered bool>.Dictionary
_so SymphonySecurityOverlord

Public Methods

Method Description
HandleData ( MemBlock data, ISender return_path, object state ) : void
SecureConnectionHandler ( PType ptype, StructuredNode node, SymphonySecurityOverlord so ) : Brunet.Collections

Protected Methods

Method Description
ConStateChange ( Connection con, Connections.ConnectionState>.Pair cs ) : void
GetSecureSender ( Connection con, SecurityAssociation &sa ) : bool
SAStateChange ( SecurityAssociation sa, SecurityAssociation state ) : void
SenderToAddress ( ISender sender ) : Address
TryGetSender ( Address dst, ISender &sender ) : bool
ValidConnection ( Connection con ) : void
ValidDisconnection ( Connection con ) : void

Method Details

ConStateChange() protected method

protected ConStateChange ( Connection con, Connections.ConnectionState>.Pair cs ) : void
con Brunet.Connections.Connection
cs Connections.ConnectionState>.Pair
return void

GetSecureSender() protected method

protected GetSecureSender ( Connection con, SecurityAssociation &sa ) : bool
con Brunet.Connections.Connection
sa SecurityAssociation
return bool

HandleData() public method

public HandleData ( MemBlock data, ISender return_path, object state ) : void
data Brunet.Util.MemBlock
return_path ISender
state object
return void

SAStateChange() protected method

protected SAStateChange ( SecurityAssociation sa, SecurityAssociation state ) : void
sa SecurityAssociation
state SecurityAssociation
return void

SecureConnectionHandler() public method

public SecureConnectionHandler ( PType ptype, StructuredNode node, SymphonySecurityOverlord so ) : Brunet.Collections
ptype Brunet.Util.PType
node Brunet.Symphony.StructuredNode
so SymphonySecurityOverlord
return Brunet.Collections

SenderToAddress() protected method

protected SenderToAddress ( ISender sender ) : Address
sender ISender
return Address

TryGetSender() protected method

protected TryGetSender ( Address dst, ISender &sender ) : bool
dst Address
sender ISender
return bool

ValidConnection() protected method

protected ValidConnection ( Connection con ) : void
con Brunet.Connections.Connection
return void

ValidDisconnection() protected method

protected ValidDisconnection ( Connection con ) : void
con Brunet.Connections.Connection
return void

Property Details

_registered protected_oe property

protected Dictionary _registered
return bool>.Dictionary

_so protected_oe property

protected SymphonySecurityOverlord,Brunet.Security.PeerSec.Symphony _so
return SymphonySecurityOverlord