C# Class SensorShare.Network.NetworkNode

ファイルを表示 Open project: MarkPaxton/SensorShare3 Class Usage Examples

Public Methods

Method Description
Defragment ( NetworkMessage message ) : void

Stores a message fragment, if all the fragments of a message are stored MessageDefragmented event is fired

FireMessageReceived ( NetworkMessage message ) : void
FireOtherMessageReceived ( NetworkMessage message ) : void
Fragment ( NetworkMessage message ) : SensorShare.Network.NetworkMessage[]

Fragments the given message into a number of smaller messages for sending over the network

NetworkNode ( System.Guid localID, IPAddress listenIP, int port ) : System
ReceiveProcessThread ( ) : void
Send ( byte bytes ) : void
Send ( byte bytes, System.Guid destinationID ) : void
SendDirect ( byte data, System.Guid destinationID ) : void
SendFragments ( byte data, System.Guid destinationID ) : void
Start ( ) : void
Stop ( ) : void

Private Methods

Method Description
CompareTime ( TickGuid x ) : bool
DirectUdpThread ( ) : void
MessageLifetimeTimerTimeout ( object ob ) : void
NetworkNode_MessageDefragmented ( object sender, MessageDefragmentedEventArgs args ) : void
ReceiveThread ( ) : void
RemoveExpiry ( System.Guid id ) : void

Remove a message expiry time from the list

SendThread ( ) : void
sendMessage ( NetworkMessage message ) : void
startMessageLifetimeTimer ( ) : void

Method Details

Defragment() public method

Stores a message fragment, if all the fragments of a message are stored MessageDefragmented event is fired
public Defragment ( NetworkMessage message ) : void
message NetworkMessage
return void

FireMessageReceived() public method

public FireMessageReceived ( NetworkMessage message ) : void
message NetworkMessage
return void

FireOtherMessageReceived() public method

public FireOtherMessageReceived ( NetworkMessage message ) : void
message NetworkMessage
return void

Fragment() public method

Fragments the given message into a number of smaller messages for sending over the network
public Fragment ( NetworkMessage message ) : SensorShare.Network.NetworkMessage[]
message NetworkMessage
return SensorShare.Network.NetworkMessage[]

NetworkNode() public method

public NetworkNode ( System.Guid localID, IPAddress listenIP, int port ) : System
localID System.Guid
listenIP IPAddress
port int
return System

ReceiveProcessThread() public method

public ReceiveProcessThread ( ) : void
return void

Send() public method

public Send ( byte bytes ) : void
bytes byte
return void

Send() public method

public Send ( byte bytes, System.Guid destinationID ) : void
bytes byte
destinationID System.Guid
return void

SendDirect() public method

public SendDirect ( byte data, System.Guid destinationID ) : void
data byte
destinationID System.Guid
return void

SendFragments() public method

public SendFragments ( byte data, System.Guid destinationID ) : void
data byte
destinationID System.Guid
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void