SIGTRAN Class Reference

Abstract SIGTRAN user adaptation component. More...

#include <yatesig.h>

Inheritance diagram for SIGTRAN:
ISDNIUA SS7M2PA SS7M2UA SS7M3UA SS7SUA

List of all members.

Public Types

enum  MsgClass {
  MGMT = 0, TRAN = 1, SSNM = 2, ASPSM = 3,
  ASPTM = 4, QPTM = 5, MAUP = 6, CLMSG = 7,
  COMSG = 8, RKM = 9, IIM = 10, M2PA = 11
}

Public Member Functions

 SIGTRAN ()
virtual ~SIGTRAN ()
virtual void attach (SIGTransport *trans)
SIGTransporttransport () const
bool connected (int streamId=0) const

Static Public Member Functions

static const TokenDictclassNames ()

Protected Member Functions

virtual bool processMSG (unsigned char msgVersion, unsigned char msgClass, unsigned char msgType, const DataBlock &msg, int streamId)=0
bool transmitMSG (unsigned char msgVersion, unsigned char msgClass, unsigned char msgType, const DataBlock &msg, int streamId=0) const

Friends

class SIGTransport

Detailed Description

Abstract SIGTRAN user adaptation component.

An interface to a Signalling Transport user adaptation component


Member Enumeration Documentation

enum MsgClass

Message classes


Constructor & Destructor Documentation

SIGTRAN (  ) 

Constructs an uninitialized signalling transport

virtual ~SIGTRAN (  )  [virtual]

Destructor, terminates transport layer


Member Function Documentation

virtual void attach ( SIGTransport trans  )  [virtual]

Attach a transport (connectivity provider)

Parameters:
trans Transport to attach to this component
static const TokenDict* classNames (  )  [static]

Message class names dictionary

Returns:
Pointer to dictionary of message classes
bool connected ( int  streamId = 0  )  const

Check if the network transport layer is connected

Parameters:
streamId Identifier of the stream to check if applicable
Returns:
True if the transport (and stream if applicable) is connected
virtual bool processMSG ( unsigned char  msgVersion,
unsigned char  msgClass,
unsigned char  msgType,
const DataBlock msg,
int  streamId 
) [protected, pure virtual]

Process a complete message

Parameters:
msgVersion Version of the protocol
msgClass Class of the message
msgType Type of the message, depends on the class
msg Message data, may be empty
streamId Identifier of the stream the message was received on
Returns:
True if the message was handled
bool transmitMSG ( unsigned char  msgVersion,
unsigned char  msgClass,
unsigned char  msgType,
const DataBlock msg,
int  streamId = 0 
) const [protected]

Transmit a message to the network transport layer

Parameters:
msgVersion Version of the protocol
msgClass Class of the message
msgType Type of the message, depends on the class
msg Message data, may be empty
streamId Identifier of the stream to send the data over
Returns:
True if the message was transmitted to network
SIGTransport* transport (  )  const [inline]

Get the transport of this user adaptation component

Returns:
Pointer to the transport layer or NULL

The documentation for this class was generated from the following file:
Generated on Thu Apr 8 18:19:45 2010 for Yate by  doxygen 1.6.3