Yate
SS7MsgSccpReassemble Class Reference
Inheritance diagram for SS7MsgSccpReassemble:
SS7MsgSCCP SignallingMessage RefObject GenObject

Public Types

enum  Return { Rejected , Accepted , Error , Finished }
 
- Public Types inherited from SS7MsgSCCP
enum  Type {
  Unknown = 0 , CR = 0x01 , CC = 0x02 , CREF = 0x03 ,
  RLSD = 0x04 , RLC = 0x05 , DT1 = 0x06 , DT2 = 0x07 ,
  AK = 0x08 , UDT = 0x09 , UDTS = 0x0a , ED = 0x0b ,
  EA = 0x0c , RSR = 0x0d , RSC = 0x0e , ERR = 0x0f ,
  IT = 0x10 , XUDT = 0x11 , XUDTS = 0x12 , LUDT = 0x13 ,
  LUDTS = 0x14
}
 
enum  Parameters {
  EndOfParameters = 0 , DestinationLocalReference = 0x01 , SourceLocalReference = 0x02 , CalledPartyAddress = 0x03 ,
  CallingPartyAddress = 0x04 , ProtocolClass = 0x05 , Segmenting = 0x06 , ReceiveSequenceNumber = 0x07 ,
  Sequencing = 0x08 , Credit = 0x09 , ReleaseCause = 0x0a , ReturnCause = 0x0b ,
  ResetCause = 0x0c , ErrorCause = 0x0d , RefusalCause = 0x0e , Data = 0x0f ,
  Segmentation = 0x10 , HopCounter = 0x11 , Importance = 0x12 , LongData = 0x13 ,
  MessageTypeInterworking = 0xf8 , INS = 0xf9 , ISNI = 0xfa
}
 

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 ()
 
- Public Member Functions inherited from SS7MsgSCCP
 SS7MsgSCCP (Type type)
 
virtual ~SS7MsgSCCP ()
 
Type type () const
 
void updateType (Type type)
 
bool isLongDataMessage () const
 
bool canBeUDT () const
 
void toString (String &dest, const SS7Label &label, bool params, const void *raw=0, unsigned int rawLen=0) const
 
void setData (DataBlock *data)
 
void removeData ()
 
DataBlockgetData ()
 
DataBlockextractData ()
 
- Public Member Functions inherited from SignallingMessage
 SignallingMessage (const char *name=0)
 
const char * name () const
 
NamedListparams ()
 
const NamedListparams () const
 
- Public Member Functions inherited from RefObject
 RefObject ()
 
virtual ~RefObject ()
 
virtual void * getObject (const String &name) const
 
virtual bool alive () const
 
bool ref ()
 
bool deref ()
 
int refcount () const
 
virtual void destruct ()
 
- Public Member Functions inherited from GenObject
 GenObject ()
 
virtual ~GenObject ()
 
virtual const StringtoString () const
 
virtual const StringtraceId () const
 
NamedCountergetObjCounter () const
 
NamedCountersetObjCounter (NamedCounter *counter)
 

Additional Inherited Members

- Static Public Member Functions inherited from SS7MsgSCCP
static const TokenDictnames ()
 
static const char * lookup (Type type, const char *defvalue=0)
 
static Type lookup (const char *name, Type defvalue=Unknown)
 
- Static Public Member Functions inherited from RefObject
static bool alive (const RefObject *obj)
 
static bool efficientIncDec ()
 
- Static Public Member Functions inherited from GenObject
static void * getObject (const String &name, const GenObject *obj)
 
static bool getObjCounting ()
 
static void setObjCounting (bool enable)
 
static NamedCountergetObjCounter (const String &name, bool create=true)
 
static ObjListgetObjCounters ()
 
- Protected Member Functions inherited from RefObject
virtual void zeroRefs ()
 
bool resurrect ()
 
virtual void destroyed ()
 
- Protected Attributes inherited from SignallingMessage
NamedList m_params
 

Constructor & Destructor Documentation

◆ SS7MsgSccpReassemble()

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

References SS7MsgSCCP::SS7MsgSCCP().

◆ ~SS7MsgSccpReassemble()

virtual ~SS7MsgSccpReassemble ( )
virtual

Destructor

Member Function Documentation

◆ appendSegment()

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

References SS7MsgSCCP::SS7MsgSCCP().

◆ canProcess()

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

References SS7MsgSCCP::SS7MsgSCCP().

◆ haveAllSegments()

bool haveAllSegments ( )
inline

Helper method to verify if all segments have arrived

Returns
True if all segments arrived

◆ timeout()

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: