H323ServiceControlSession Class Reference

#include <svcctrl.h>

Inheritance diagram for H323ServiceControlSession:

H323CallCreditServiceControl H323H248ServiceControl H323HTTPServiceControl List of all members.

Operations

enum  ChangeType { OpenSession, RefreshSession, CloseSession }
enum  serviceType { e_URL, e_Signal, e_NonStandard, e_CallCredit }
virtual BOOL IsValid () const=0
virtual PString GetServiceControlType () const
virtual BOOL OnReceivedPDU (const H225_ServiceControlDescriptor &descriptor)=0
virtual BOOL OnSendingPDU (H225_ServiceControlDescriptor &descriptor) const =0
virtual void OnChange (unsigned type, unsigned sessionId, H323EndPoint &endpoint, H323Connection *connection) const =0

Public Member Functions

Construction
 H323ServiceControlSession ()

Detailed Description

This is a base class for H.323 Service Control Session handling. This implements the service class session management as per Annex K/H.323.

Definition at line 67 of file svcctrl.h.


Member Enumeration Documentation

enum H323ServiceControlSession::ChangeType

Enumerator:
OpenSession 
RefreshSession 
CloseSession 

Definition at line 118 of file svcctrl.h.

enum H323ServiceControlSession::serviceType

Enumerator:
e_URL 
e_Signal 
e_NonStandard 
e_CallCredit 

Definition at line 135 of file svcctrl.h.


Constructor & Destructor Documentation

H323ServiceControlSession::H323ServiceControlSession (  ) 

Create a new handler for a Service Control.

Definition at line 65 of file svcctrl.cxx.


Member Function Documentation

virtual BOOL H323ServiceControlSession::IsValid (  )  const [pure virtual]

Determine of the session is valid. That is has all of the data it needs to correctly encode a PDU.

Default behaviour is pure.

Implemented in H323HTTPServiceControl, and H323CallCreditServiceControl.

PString H323ServiceControlSession::GetServiceControlType (  )  const [virtual]

Get identification name for the Control Service. This function separates the dynamic data from the fundamental type of the control service which will cause a new session ID to be generated by the gatekeeper server.

Default behaviour returns the class name.

Reimplemented in H323HTTPServiceControl.

Definition at line 70 of file svcctrl.cxx.

virtual BOOL H323ServiceControlSession::OnReceivedPDU ( const H225_ServiceControlDescriptor descriptor  )  [pure virtual]

Handle a received PDU. Update in the internal state from the received PDU.

Returns FALSE is PDU is not sutiable for the class type.

Default behaviour is pure.

Implemented in H323HTTPServiceControl, H323H248ServiceControl, and H323CallCreditServiceControl.

virtual BOOL H323ServiceControlSession::OnSendingPDU ( H225_ServiceControlDescriptor descriptor  )  const [pure virtual]

Handle a sent PDU. Set the PDU fields from in the internal state.

Returns FALSE is PDU cannot be created.

Default behaviour is pure.

Implemented in H323HTTPServiceControl, H323H248ServiceControl, and H323CallCreditServiceControl.

virtual void H323ServiceControlSession::OnChange ( unsigned  type,
unsigned  sessionId,
H323EndPoint endpoint,
H323Connection connection 
) const [pure virtual]

Handle a change of the state of the Service Control Session.

Default behaviour is pure.

Implemented in H323HTTPServiceControl, and H323CallCreditServiceControl.


The documentation for this class was generated from the following files:
Generated on Thu Oct 25 13:45:32 2007 for h323plus by  doxygen 1.5.2