Yate
MGCPEvent Class Reference

An MGCP event. More...

#include <yatemgcp.h>

Public Member Functions

 ~MGCPEvent ()
 
MGCPTransactiontransaction ()
 
MGCPMessagemessage () const
 

Protected Member Functions

 MGCPEvent (MGCPTransaction *trans, MGCPMessage *msg=0)
 

Friends

class MGCPTransaction
 

Detailed Description

An MGCP event.

This class carries a copy of the message received by a transaction or a transaction state change notification (such as timeout or destroy)

Constructor & Destructor Documentation

◆ ~MGCPEvent()

~MGCPEvent ( )

Destructor. Delete the message. Notify and deref the transaction

◆ MGCPEvent()

MGCPEvent ( MGCPTransaction * trans,
MGCPMessage * msg = 0 )
protected

Constructor. Constructs an event from a transaction

Parameters
transThe transaction that generated this event
msgThe message carried by this event, if any

Member Function Documentation

◆ message()

MGCPMessage * message ( ) const
inline

Get the message carried by this event

Returns
The message carried by this event or 0 if none

◆ transaction()

MGCPTransaction * transaction ( )
inline

Get the transaction that generated this event

Returns
The transaction that generated this event

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