C# Class Forseti.HashConnection

HashConnection is a transport for exchanging hashtables, transmitted over UDP using JSON.
显示文件 Open project: pioneers/forseti Class Usage Examples

Public Methods

Method Description
AddHashConPacketListener ( HashPacketListener l ) : void
HashConnection ( int listenPort, int sendPort ) : System
RemoveHashConPacketListener ( HashPacketListener l ) : void
SendTable ( Hashtable table, string address ) : void
Start ( ) : void
bytesReceived ( byte bytes, string senderAddress ) : void

Private Methods

Method Description
notifyListeners ( Hashtable packet, string sender ) : void

Method Details

AddHashConPacketListener() public method

public AddHashConPacketListener ( HashPacketListener l ) : void
l HashPacketListener
return void

HashConnection() public method

public HashConnection ( int listenPort, int sendPort ) : System
listenPort int
sendPort int
return System

RemoveHashConPacketListener() public method

public RemoveHashConPacketListener ( HashPacketListener l ) : void
l HashPacketListener
return void

SendTable() public method

public SendTable ( Hashtable table, string address ) : void
table System.Collections.Hashtable
address string
return void

Start() public method

public Start ( ) : void
return void

bytesReceived() public method

public bytesReceived ( byte bytes, string senderAddress ) : void
bytes byte
senderAddress string
return void