H323HTTPServiceControl Class Reference

#include <svcctrl.h>

Inheritance diagram for H323HTTPServiceControl:

H323ServiceControlSession List of all members.

Public Member Functions

Construction
 H323HTTPServiceControl (const PString &url)
 H323HTTPServiceControl (const H225_ServiceControlDescriptor &contents)
Operations
virtual BOOL IsValid () const
virtual PString GetServiceControlType () const
virtual BOOL OnReceivedPDU (const H225_ServiceControlDescriptor &contents)
virtual BOOL OnSendingPDU (H225_ServiceControlDescriptor &contents) const
virtual void OnChange (unsigned type, unsigned sessionId, H323EndPoint &endpoint, H323Connection *connection) const
serviceType GetType ()
void GetValue (PString &_url)

Protected Attributes

PString url

Detailed Description

This class is for H.323 Service Control Session handling for HTTP. This implements the HTTP channel management as per Annex K/H.323.

Definition at line 150 of file svcctrl.h.


Constructor & Destructor Documentation

H323HTTPServiceControl::H323HTTPServiceControl ( const PString &  url  ) 

Create a new handler for a Service Control.

Definition at line 78 of file svcctrl.cxx.

H323HTTPServiceControl::H323HTTPServiceControl ( const H225_ServiceControlDescriptor contents  ) 

Create a new handler for a Service Control, initialise to PDU.

Definition at line 84 of file svcctrl.cxx.

References OnReceivedPDU().


Member Function Documentation

BOOL H323HTTPServiceControl::IsValid (  )  const [virtual]

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

Default behaviour returns TRUE if url is not an empty string.

Implements H323ServiceControlSession.

Definition at line 90 of file svcctrl.cxx.

References url.

PString H323HTTPServiceControl::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 from H323ServiceControlSession.

Definition at line 96 of file svcctrl.cxx.

References H323ServiceControlSession::e_URL.

BOOL H323HTTPServiceControl::OnReceivedPDU ( const H225_ServiceControlDescriptor contents  )  [virtual]

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

Default behaviour gets the contents for an e_url.

Implements H323ServiceControlSession.

Definition at line 102 of file svcctrl.cxx.

References H225_ServiceControlDescriptor::e_url, and url.

Referenced by H323HTTPServiceControl().

BOOL H323HTTPServiceControl::OnSendingPDU ( H225_ServiceControlDescriptor contents  )  const [virtual]

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

Default behaviour sets the contents to an e_url.

Implements H323ServiceControlSession.

Definition at line 113 of file svcctrl.cxx.

References H225_ServiceControlDescriptor::e_url, and url.

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

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

Default behaviour calls endpoint.OnHTTPServiceControl().

Implements H323ServiceControlSession.

Definition at line 123 of file svcctrl.cxx.

References H323EndPoint::OnHTTPServiceControl(), and url.


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