C# Class TSystems.RELOAD.Transport.ReloadMessage

Mostra file Open project: RELOAD-NET/RELOAD.NET Class Usage Examples

Public Properties

Property Type Description
RELOTAG UInt32
forwarding_header ForwardingHeader
reload_message_body RELOAD_MessageBody
security_block SecurityBlock

Public Methods

Method Description
AddDestinationOverlay ( string resourceName ) : bool
AddViaHeader ( NodeId Node ) : bool
FromBytes ( byte bytes, long &offset, ReadFlags flags ) : ReloadMessage
GetDestListNetLength ( List dest_list ) : int
GetFirstViaHeader ( ) : Destination
IsFragmented ( ) : bool
IsRequest ( ) : bool
IsSingleFragmentMessage ( ) : bool
NeedsReassembling ( ) : bool
PutViaListToDestination ( ) : bool
PutViaListToDestination ( ReloadMessage rmDest ) : bool
ReadDestList ( BinaryReader reader, int Length ) : List
ReadOptionList ( BinaryReader reader, int Length ) : List
ReceiveFragmentedMessage ( MessageFragment>.Dictionary &fragmentedMessageBuffer ) : ReloadMessage

Method is used to retrieve fragmented Messages. Needs to be called for every fragmented Message. Message fragments are stored in the fragmentedMessageBuffer.

ReloadMessage ( ReloadConfig rc ) : System
ReloadMessage ( ReloadConfig rc, NodeId LastHopNodeId ) : System
ReloadMessage ( ReloadConfig rc, NodeId OriginatorNodeID, Destination destination, UInt64 trans_id, RELOAD_MessageBody reload_content ) : System
RemoveFirstDestEntry ( ) : void
ToBytes ( ) : byte[]
ToBytesFragmented ( uint fragmentSize ) : List

Method is used to fragmented a Message into fragments.

WriteDestList ( BinaryWriter writer, List dest_list ) : long
WriteOptionList ( BinaryWriter writer, List option_list ) : long
addOverlayForwardingOptions ( ReloadMessage recmsg ) : void

Private Methods

Method Description
IncrementTransactionID ( ) : void

Method Details

AddDestinationOverlay() public method

public AddDestinationOverlay ( string resourceName ) : bool
resourceName string
return bool

AddViaHeader() public method

public AddViaHeader ( NodeId Node ) : bool
Node TSystems.RELOAD.Utils.NodeId
return bool

FromBytes() public method

public FromBytes ( byte bytes, long &offset, ReadFlags flags ) : ReloadMessage
bytes byte
offset long
flags ReadFlags
return ReloadMessage

GetDestListNetLength() public static method

public static GetDestListNetLength ( List dest_list ) : int
dest_list List
return int

GetFirstViaHeader() public method

public GetFirstViaHeader ( ) : Destination
return Destination

IsFragmented() public method

public IsFragmented ( ) : bool
return bool

IsRequest() public method

public IsRequest ( ) : bool
return bool

IsSingleFragmentMessage() public method

public IsSingleFragmentMessage ( ) : bool
return bool

NeedsReassembling() public method

public NeedsReassembling ( ) : bool
return bool

PutViaListToDestination() public method

public PutViaListToDestination ( ) : bool
return bool

PutViaListToDestination() public method

public PutViaListToDestination ( ReloadMessage rmDest ) : bool
rmDest ReloadMessage
return bool

ReadDestList() public method

public ReadDestList ( BinaryReader reader, int Length ) : List
reader BinaryReader
Length int
return List

ReadOptionList() public method

public ReadOptionList ( BinaryReader reader, int Length ) : List
reader BinaryReader
Length int
return List

ReceiveFragmentedMessage() public method

Method is used to retrieve fragmented Messages. Needs to be called for every fragmented Message. Message fragments are stored in the fragmentedMessageBuffer.
public ReceiveFragmentedMessage ( MessageFragment>.Dictionary &fragmentedMessageBuffer ) : ReloadMessage
fragmentedMessageBuffer MessageFragment>.Dictionary reference to a buffer for MessageFragments
return ReloadMessage

ReloadMessage() public method

public ReloadMessage ( ReloadConfig rc ) : System
rc ReloadConfig
return System

ReloadMessage() public method

public ReloadMessage ( ReloadConfig rc, NodeId LastHopNodeId ) : System
rc ReloadConfig
LastHopNodeId NodeId
return System

ReloadMessage() public method

public ReloadMessage ( ReloadConfig rc, NodeId OriginatorNodeID, Destination destination, UInt64 trans_id, RELOAD_MessageBody reload_content ) : System
rc ReloadConfig
OriginatorNodeID NodeId
destination Destination
trans_id UInt64
reload_content RELOAD_MessageBody
return System

RemoveFirstDestEntry() public method

public RemoveFirstDestEntry ( ) : void
return void

ToBytes() public method

public ToBytes ( ) : byte[]
return byte[]

ToBytesFragmented() public method

Method is used to fragmented a Message into fragments.
public ToBytesFragmented ( uint fragmentSize ) : List
fragmentSize uint Size at which the Message is spitted into fragments
return List

WriteDestList() public static method

public static WriteDestList ( BinaryWriter writer, List dest_list ) : long
writer BinaryWriter
dest_list List
return long

WriteOptionList() public static method

public static WriteOptionList ( BinaryWriter writer, List option_list ) : long
writer BinaryWriter
option_list List
return long

addOverlayForwardingOptions() public method

public addOverlayForwardingOptions ( ReloadMessage recmsg ) : void
recmsg ReloadMessage
return void

Property Details

RELOTAG public_oe static_oe property

public static UInt32 RELOTAG
return UInt32

forwarding_header public_oe property

public ForwardingHeader forwarding_header
return ForwardingHeader

reload_message_body public_oe property

public RELOAD_MessageBody reload_message_body
return RELOAD_MessageBody

security_block public_oe property

public SecurityBlock security_block
return SecurityBlock