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
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
UserData System.Collections.Hashtable
_so Brunet.Security.SecurityOverlord

Защищенные свойства (Protected)

Свойство Тип Описание
_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