#include <yatesig.h>
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 |
An interface to a Signalling Transport component
enum Transport |
Type of transport used
SIGTRAN | ( | ) |
Constructs an uninitialized signalling transport
virtual ~SIGTRAN | ( | ) | [virtual] |
Destructor, closes connection and any socket
Attach an open socket
socket | Already open socket to attach | |
trans | Type of the socket (transport) |
virtual bool processMSG | ( | unsigned char | msgVersion, | |
unsigned char | msgClass, | |||
unsigned char | msgType, | |||
const DataBlock & | msg | |||
) | [protected, pure virtual] |
Process a complete message
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 |
virtual void terminate | ( | ) | [virtual] |
Terminate the transport, close the socket, drop partial data