C# Class Brunet.Connections.ConnectionPacketHandler

Inheritance: IRpcHandler
Show file Open project: johnynek/brunet Class Usage Examples

Protected Properties

Property Type Description
_disconnecting int
_edge_to_cphstate System.Collections.Hashtable
_node Node
_sync object

Public Methods

Method Description
Close ( IDictionary close_message, ISender edge ) : IDictionary
CloseHandler ( object edge, EventArgs args ) : void
ConnectionPacketHandler ( Node n ) : System
GetLocalIPAddresses ( ) : IList
GetNeighbors ( ) : IDictionary
GetStatus ( IDictionary status_message, ISender edge ) : IDictionary
HandleRpc ( ISender caller, string method, IList arguments, object request_state ) : void
Ping ( object o, ISender edge ) : object
Start ( IDictionary link_message, ISender edge ) : IDictionary

Protected Methods

Method Description
CanConnect ( CphState cph, ErrorMessage &err ) : bool
GetEdge ( ISender s ) : Edge

Method Details

CanConnect() protected method

protected CanConnect ( CphState cph, ErrorMessage &err ) : bool
cph CphState
err ErrorMessage
return bool

Close() public method

public Close ( IDictionary close_message, ISender edge ) : IDictionary
close_message IDictionary
edge ISender
return IDictionary

CloseHandler() public method

public CloseHandler ( object edge, EventArgs args ) : void
edge object
args System.EventArgs
return void

ConnectionPacketHandler() public method

public ConnectionPacketHandler ( Node n ) : System
n Node
return System

GetEdge() protected method

protected GetEdge ( ISender s ) : Edge
s ISender
return Edge

GetLocalIPAddresses() public method

public GetLocalIPAddresses ( ) : IList
return IList

GetNeighbors() public method

public GetNeighbors ( ) : IDictionary
return IDictionary

GetStatus() public method

public GetStatus ( IDictionary status_message, ISender edge ) : IDictionary
status_message IDictionary
edge ISender
return IDictionary

HandleRpc() public method

public HandleRpc ( ISender caller, string method, IList arguments, object request_state ) : void
caller ISender
method string
arguments IList
request_state object
return void

Ping() public method

public Ping ( object o, ISender edge ) : object
o object
edge ISender
return object

Start() public method

public Start ( IDictionary link_message, ISender edge ) : IDictionary
link_message IDictionary
edge ISender
return IDictionary

Property Details

_disconnecting protected property

protected int _disconnecting
return int

_edge_to_cphstate protected property

protected Hashtable,System.Collections _edge_to_cphstate
return System.Collections.Hashtable

_node protected property

protected Node _node
return Node

_sync protected property

protected object _sync
return object