Yate
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
SS7Layer4 Class Reference

Abstract SS7 layer 4 (application) protocol. More...

#include <yatesig.h>

Inheritance diagram for SS7Layer4:
SS7L3User SignallingComponent RefObject DebugEnabler GenObject SS7ISUP SS7Management SS7SCCP SS7Testing SS7TUP SS7BICC

List of all members.

Public Member Functions

virtual void destroyed ()
virtual bool initialize (const NamedList *config)
virtual void attach (SS7Layer3 *network)
SS7Layer3network () const
unsigned char sio () const
unsigned char sif () const
unsigned char ssf () const
unsigned char prio () const
unsigned char ni () const
unsigned char getSIO (const NamedList &params) const

Static Public Member Functions

static unsigned char getSIO (const NamedList &params, unsigned char sif, unsigned char prio, unsigned char ni)
static unsigned char getSIO (const NamedList &params, unsigned char sif, unsigned char ssf)
static unsigned char getSIO (const NamedList &params, unsigned char sio)

Protected Member Functions

 SS7Layer4 (unsigned char sio=SS7MSU::National, const NamedList *params=0)
int transmitMSU (const SS7MSU &msu, const SS7Label &label, int sls=-1)

Protected Attributes

unsigned char m_sio

Detailed Description

Abstract SS7 layer 4 (application) protocol.

An interface to a Layer 4 (application) SS7 protocol


Constructor & Destructor Documentation

SS7Layer4 ( unsigned char  sio = SS7MSU::National,
const NamedList params = 0 
) [protected]

Constructor

Parameters:
sioDefault value of Service Information Octet
paramsOptional parameters to alter the value of SIO

Member Function Documentation

virtual void attach ( SS7Layer3 network) [virtual]

Attach a SS7 network or router to this service. Detach itself from the old one if valid

Parameters:
networkPointer to network or router to attach

Implements SS7L3User.

Reimplemented in SS7SCCP, and SS7ISUP.

virtual void destroyed ( ) [virtual]

This method is called to clean up and destroy the object after the reference counter becomes zero

Reimplemented from SignallingComponent.

Reimplemented in SS7SCCP, and SS7ISUP.

static unsigned char getSIO ( const NamedList params,
unsigned char  sif,
unsigned char  prio,
unsigned char  ni 
) [static]

Get a SIO value from a parameters list

Parameters:
paramsParameter list to retrieve "service", "priority" and "netindicator"
sifDefault Service Information Field to apply parameters to
prioDefault Priority Field to apply parameters to
niDefault Network Indicator Field to apply parameters to
Returns:
Adjusted SIO value
static unsigned char getSIO ( const NamedList params,
unsigned char  sif,
unsigned char  ssf 
) [inline, static]

Get a SIO value from a parameters list

Parameters:
paramsParameter list to retrieve "service", "priority" and "netindicator"
sifDefault Service Information Field to apply parameters to
ssfDefault Subservice Field to apply parameters to
Returns:
Adjusted SIO value

References SS7Layer4::getSIO().

Referenced by SS7Layer4::getSIO().

static unsigned char getSIO ( const NamedList params,
unsigned char  sio 
) [inline, static]

Get a SIO value from a parameters list

Parameters:
paramsParameter list to retrieve "service", "priority" and "netindicator"
sioDefault SIO to apply parameters to
Returns:
Adjusted SIO value

References SS7Layer4::getSIO().

Referenced by SS7Layer4::getSIO().

unsigned char getSIO ( const NamedList params) const [inline]

Get a SIO value from a parameters list

Parameters:
paramsParameter list to retrieve "service", "priority" and "netindicator"
Returns:
Adjusted SIO value

References SS7Layer4::getSIO().

Referenced by SS7Layer4::getSIO().

virtual bool initialize ( const NamedList config) [virtual]

Initialize the application layer, connect it to the SS7 router

Parameters:
configOptional configuration parameters override
Returns:
True if the application was initialized properly

Reimplemented from SignallingComponent.

Reimplemented in SS7SCCP, SS7ISUP, and SS7Testing.

SS7Layer3* network ( ) const [inline]

Retrieve the SS7 network or router to which this service is attached

Returns:
Pointer to the network or router this service is attached to
unsigned char ni ( ) const [inline]

Get the default sending Network Indicator bits for this protocol

Returns:
Network Indicator bits
unsigned char prio ( ) const [inline]

Get the default sending Priority bits for this protocol

Returns:
Priority bits
unsigned char sif ( ) const [inline]

Get the Service Information Field (SS7 protocol number)

Returns:
SIF value used in matching and sending MSUs
unsigned char sio ( ) const [inline]

Get the default sending Service Information Octet for this protocol

Returns:
SIO value
unsigned char ssf ( ) const [inline]

Get the default sending Service Switching Function bits for this protocol

Returns:
Combined Priority and Network Indicator bits
int transmitMSU ( const SS7MSU msu,
const SS7Label label,
int  sls = -1 
) [inline, protected]

Ask the Layer 3 to push a Message Signal Unit down the protocol stack

Parameters:
msuMessage data, starting with Service Indicator Octet
labelRouting label of the MSU to use in routing
slsSignalling Link Selection, negative to choose best
Returns:
Link the message was successfully queued to, negative for error

Member Data Documentation

unsigned char m_sio [protected]

Service Information Octet (SIO) for this protocol


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