Yate
Public Member Functions | Friends

SS7Route Class Reference

A SS7 MSU route. More...

#include <yatesig.h>

Inheritance diagram for SS7Route:
RefObject Mutex GenObject Lockable

List of all members.

Public Member Functions

 SS7Route (unsigned int packed, unsigned int priority=0)
virtual ~SS7Route ()
void attach (SS7Layer3 *network, SS7PointCode::Type type)
bool detach (SS7Layer3 *network)
int transmitMSU (const SS7Router *router, const SS7MSU &msu, const SS7Label &label, int sls)

Friends

class SS7Layer3

Detailed Description

A SS7 MSU route.

Keeps a packed destination point code, a network priority or a list of networks used to route to the enclosed destination point code


Constructor & Destructor Documentation

SS7Route ( unsigned int  packed,
unsigned int  priority = 0 
) [inline]

Constructor

Parameters:
packedThe packed value of the destination point code
priorityOptional value of the network priority
virtual ~SS7Route ( ) [inline, virtual]

Destructor


Member Function Documentation

void attach ( SS7Layer3 network,
SS7PointCode::Type  type 
)

Attach a network to use for this destination or change its priority. This method is thread safe

Parameters:
networkThe network to attach or change priority
typeThe point code type used to get the priority from the given network or the networks already in the list
bool detach ( SS7Layer3 network)

Remove a network from the list without deleting it. This method is thread safe

Parameters:
networkThe network to remove
Returns:
False if the list of networks is empty
int transmitMSU ( const SS7Router router,
const SS7MSU msu,
const SS7Label label,
int  sls 
)

Try to transmit a MSU through one of the attached networks. This method is thread safe

Parameters:
routerThe router requesting the operation (used for debug)
msuMessage data, starting with Service Indicator Octet
labelRouting label of the MSU
slsSignalling Link Selection, negative to choose best
Returns:
Link the message was successfully queued to, negative for error

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