Yate
Public Types | Public Member Functions
SS7MsgSccpReassemble Class Reference
Inheritance diagram for SS7MsgSccpReassemble:
SS7MsgSCCP SignallingMessage RefObject GenObject

List of all members.

Public Types

enum  Return { Rejected, Accepted, Error, Finished }

Public Member Functions

 SS7MsgSccpReassemble (SS7MsgSCCP *msg, const SS7Label &label, unsigned int timeToLive)
virtual ~SS7MsgSccpReassemble ()
bool canProcess (const SS7MsgSCCP *msg, const SS7Label &label)
Return appendSegment (SS7MsgSCCP *msg, const SS7Label &label)
bool timeout ()
bool haveAllSegments ()

Constructor & Destructor Documentation

SS7MsgSccpReassemble ( SS7MsgSCCP msg,
const SS7Label label,
unsigned int  timeToLive 
)

Constructor

Parameters:
msgThe first message segment
labelThe MTP routing label
timeToLiveThe time internal in milliseconds that we wait to reassemble the message
virtual ~SS7MsgSccpReassemble ( ) [virtual]

Destructor


Member Function Documentation

Return appendSegment ( SS7MsgSCCP msg,
const SS7Label label 
)

Append a sccp message segment to the main message

Parameters:
msgThe message segment
labelThe SS7 routing label
Returns:
One of the Return enum options
bool canProcess ( const SS7MsgSCCP msg,
const SS7Label label 
)

Helper method used to check if the given message is part of this reassembling process

Parameters:
msgThe message to verify
labelThe SS7 routing label
Returns:
True if msg is a part of this reassembling process
bool haveAllSegments ( ) [inline]

Helper method to verify if all segments have arrived

Returns:
True if all segments arrived
bool timeout ( ) [inline]

Check if this reassemble process has expired

Returns:
True if this reassemble process has expired

References Time::msecNow().


The documentation for this class was generated from the following file: