C# 클래스 Brunet.Applications.Information

This class provides a Rpc to be used during crawls of the network. It provides base informatoin such as geographical coordinates, local end points, the type of node, and neighbors. There is also support for user's to put their own data in the return value.
상속: IRpcHandler
파일 보기 프로젝트 열기: johnynek/brunet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
UserData System.Collections.Hashtable
_so Brunet.Security.SecurityOverlord

보호된 프로퍼티들

프로퍼티 타입 설명
_last_called System.DateTime
_node StructuredNode
_rpc RpcManager
_type String
geo_loc String
in_geoloc bool

공개 메소드들

메소드 설명
HandleRpc ( ISender caller, String method, IList arguments, object request_state ) : void

Implements IRpcHandler that is called by the RpcManager when an Rpc method requests any method with Information.*.

Info ( ) : IDictionary

This returns all the gathered information as a hashtable. Particularly useful for crawling.

Information ( StructuredNode node, String type ) : Brunet

Creates an Information object for the node and type of service provider.

Information ( StructuredNode node, String type, Brunet.Security.SecurityOverlord so ) : Brunet

보호된 메소드들

메소드 설명
GetGeoLoc ( ) : void

Used to have Geographical coordinates looked up in another thread.

GetGeoLocAsThread ( object o ) : void

Sets the geographical location of the running node.

메소드 상세

GetGeoLoc() 보호된 메소드

Used to have Geographical coordinates looked up in another thread.
protected GetGeoLoc ( ) : void
리턴 void

GetGeoLocAsThread() 보호된 메소드

Sets the geographical location of the running node.
protected GetGeoLocAsThread ( object o ) : void
o object
리턴 void

HandleRpc() 공개 메소드

Implements IRpcHandler that is called by the RpcManager when an Rpc method requests any method with Information.*.
public HandleRpc ( ISender caller, String method, IList arguments, object request_state ) : void
caller ISender The remote caller
method String The name of the method called.
arguments IList An IList of arguments supplied
request_state object Provides a return path back to the caller.
리턴 void

Info() 공개 메소드

This returns all the gathered information as a hashtable. Particularly useful for crawling.
public Info ( ) : IDictionary
리턴 IDictionary

Information() 공개 메소드

Creates an Information object for the node and type of service provider.
public Information ( StructuredNode node, String type ) : Brunet
node StructuredNode The node where the service is to be provided
type String The name of the application providing service (example: BasicNode)
리턴 Brunet

Information() 공개 메소드

public Information ( StructuredNode node, String type, Brunet.Security.SecurityOverlord so ) : Brunet
node StructuredNode
type String
so Brunet.Security.SecurityOverlord
리턴 Brunet

프로퍼티 상세

UserData 공개적으로 프로퍼티

A hashtable providing user information.
public Hashtable,System.Collections UserData
리턴 System.Collections.Hashtable

_last_called 보호되어 있는 프로퍼티

Last time the geographical update service was called
protected DateTime,System _last_called
리턴 System.DateTime

_node 보호되어 있는 프로퍼티

The node where service is being provided.
protected StructuredNode _node
리턴 StructuredNode

_rpc 보호되어 있는 프로퍼티

The rpc service provider.
protected RpcManager _rpc
리턴 RpcManager

_so 공개적으로 프로퍼티

public SecurityOverlord,Brunet.Security _so
리턴 Brunet.Security.SecurityOverlord

_type 보호되어 있는 프로퍼티

The name of the application providing service.
protected String _type
리턴 String

geo_loc 보호되어 있는 프로퍼티

The geographical coords for the system.
protected String geo_loc
리턴 String

in_geoloc 보호되어 있는 프로퍼티

Only want one thread of geo lookup at a time
protected bool in_geoloc
리턴 bool