Свойство | Тип | Описание | |
---|---|---|---|
HW | PType |
Метод | Описание | |
---|---|---|
HandleData ( MemBlock payload, ISender return_path, object state ) : void |
This is the only method declared by IDataHandler. All packets that are of PType("HelloWorld") will arrive here.
|
|
HelloWorldNodeDataHandler ( |
The only parameter to the constructor is a valid NodeConfig. We also register the PType here.
|
|
Main ( string args ) : int | ||
Run ( ) : void |
This is the work horse method.
|
|
SendMessage ( Brunet.Address remote_addr, ICopyable data ) : void |
This methods send some ICopyable data to the remote address.
|
public HandleData ( MemBlock payload, ISender return_path, object state ) : void | ||
payload | MemBlock | |
return_path | ISender | |
state | object | |
Результат | void |
public HelloWorldNodeDataHandler ( |
||
node_config | ||
Результат | Brunet |
public static Main ( string args ) : int | ||
args | string | |
Результат | int |
public SendMessage ( Brunet.Address remote_addr, ICopyable data ) : void | ||
remote_addr | Brunet.Address | Remote Nodes are referenced by their P2P /// Address, typically of type AHAddress. |
data | ICopyable | This is an ICopyable object which contains the data /// to send. |
Результат | void |