SIGTRAN Class Reference

Abstract SIGTRAN component. More...

#include <yatesig.h>

Inheritance diagram for SIGTRAN:

ISDNIUA SS7M2PA SS7M2UA SS7M3UA SS7SUA

List of all members.

Public Types

enum  Transport { None = 0, Sctp, Tcp, Unix }

Public Member Functions

 SIGTRAN ()
virtual ~SIGTRAN ()
virtual void terminate ()

Protected Member Functions

virtual bool attach (Socket *socket, Transport trans)
virtual bool processMSG (unsigned char msgVersion, unsigned char msgClass, unsigned char msgType, const DataBlock &msg)=0


Detailed Description

Abstract SIGTRAN component.

An interface to a Signalling Transport component


Member Enumeration Documentation

enum Transport

Type of transport used


Constructor & Destructor Documentation

SIGTRAN (  ) 

Constructs an uninitialized signalling transport

virtual ~SIGTRAN (  )  [virtual]

Destructor, closes connection and any socket


Member Function Documentation

virtual bool attach ( Socket socket,
Transport  trans 
) [protected, virtual]

Attach an open socket

Parameters:
socket Already open socket to attach
trans Type of the socket (transport)
Returns:
True if the new socket was attached successfully

virtual bool processMSG ( unsigned char  msgVersion,
unsigned char  msgClass,
unsigned char  msgType,
const DataBlock msg 
) [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
Returns:
True if the message was handled

virtual void terminate (  )  [virtual]

Terminate the transport, close the socket, drop partial data


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

Generated on Sun Dec 7 21:45:27 2008 for Yate by  doxygen 1.5.7.1