OpalT38Protocol Class Reference

#include <t38proto.h>

List of all members.

Public Member Functions

OpalTransportGetTransport () const
void SetTransport (OpalTransport *transport, BOOL autoDelete=TRUE)
Operations
virtual void Close ()
virtual BOOL Originate ()
virtual BOOL WritePacket (const T38_IFPPacket &pdu)
virtual BOOL WriteIndicator (unsigned indicator)
virtual BOOL WriteMultipleData (unsigned mode, PINDEX count, unsigned *type, const PBYTEArray *data)
virtual BOOL WriteData (unsigned mode, unsigned type, const PBYTEArray &data)
virtual BOOL Answer ()
virtual BOOL HandlePacket (const T38_IFPPacket &pdu)
virtual BOOL HandlePacketLost (unsigned nLost)
virtual BOOL OnIndicator (unsigned indicator)
virtual BOOL OnCNG ()
virtual BOOL OnCED ()
virtual BOOL OnPreamble ()
virtual BOOL OnTraining (unsigned indicator)
virtual BOOL OnData (unsigned mode, unsigned type, const PBYTEArray &data)

Protected Member Functions

BOOL HandleRawIFP (const PASN_OctetString &pdu)

Protected Attributes

OpalTransporttransport
BOOL autoDeleteTransport
BOOL corrigendumASN
unsigned indicatorRedundancy
unsigned lowSpeedRedundancy
unsigned highSpeedRedundancy
int lastSentSequenceNumber
PList< PBYTEArray > redundantIFPs


Detailed Description

This class handles the processing of the T.38 protocol.


Constructor & Destructor Documentation

OpalT38Protocol::OpalT38Protocol (  ) 

Create a new protocol handler.

OpalT38Protocol::~OpalT38Protocol (  ) 

Destroy the protocol handler.

OpalT38Protocol::OpalT38Protocol (  ) 

Create a new protocol handler.

OpalT38Protocol::~OpalT38Protocol (  ) 

Destroy the protocol handler.


Member Function Documentation

virtual void OpalT38Protocol::Close (  )  [virtual]

This is called to clean up any threads on connection termination.

virtual BOOL OpalT38Protocol::Originate (  )  [virtual]

Handle the origination of a T.38 connection. An application would normally override this. The default just sends "heartbeat" T.30 no signal indicator.

virtual BOOL OpalT38Protocol::WritePacket ( const T38_IFPPacket pdu  )  [virtual]

Write packet to the T.38 connection.

virtual BOOL OpalT38Protocol::WriteIndicator ( unsigned  indicator  )  [virtual]

Write T.30 indicator packet to the T.38 connection.

virtual BOOL OpalT38Protocol::WriteMultipleData ( unsigned  mode,
PINDEX  count,
unsigned *  type,
const PBYTEArray *  data 
) [virtual]

Write data packet to the T.38 connection.

virtual BOOL OpalT38Protocol::WriteData ( unsigned  mode,
unsigned  type,
const PBYTEArray &  data 
) [virtual]

Write data packet to the T.38 connection.

virtual BOOL OpalT38Protocol::Answer (  )  [virtual]

Handle the origination of a T.38 connection.

virtual BOOL OpalT38Protocol::HandlePacket ( const T38_IFPPacket pdu  )  [virtual]

Handle incoming T.38 packet.

If returns FALSE, then the reading loop should be terminated.

virtual BOOL OpalT38Protocol::HandlePacketLost ( unsigned  nLost  )  [virtual]

Handle lost T.38 packets.

If returns FALSE, then the reading loop should be terminated.

virtual BOOL OpalT38Protocol::OnIndicator ( unsigned  indicator  )  [virtual]

Handle incoming T.38 indicator packet. If returns FALSE, then the reading loop should be terminated.

virtual BOOL OpalT38Protocol::OnCNG (  )  [virtual]

Handle incoming T.38 CNG indicator. If returns FALSE, then the reading loop should be terminated.

virtual BOOL OpalT38Protocol::OnCED (  )  [virtual]

Handle incoming T.38 CED indicator. If returns FALSE, then the reading loop should be terminated.

virtual BOOL OpalT38Protocol::OnPreamble (  )  [virtual]

Handle incoming T.38 V.21 preamble indicator. If returns FALSE, then the reading loop should be terminated.

virtual BOOL OpalT38Protocol::OnTraining ( unsigned  indicator  )  [virtual]

Handle incoming T.38 data mode training indicator. If returns FALSE, then the reading loop should be terminated.

virtual BOOL OpalT38Protocol::OnData ( unsigned  mode,
unsigned  type,
const PBYTEArray &  data 
) [virtual]

Handle incoming T.38 data packet.

If returns FALSE, then the reading loop should be terminated.

OpalTransport* OpalT38Protocol::GetTransport (  )  const [inline]

void OpalT38Protocol::SetTransport ( OpalTransport transport,
BOOL  autoDelete = TRUE 
)

BOOL OpalT38Protocol::HandleRawIFP ( const PASN_OctetString &  pdu  )  [protected]


Member Data Documentation

OpalTransport* OpalT38Protocol::transport [protected]

BOOL OpalT38Protocol::autoDeleteTransport [protected]

BOOL OpalT38Protocol::corrigendumASN [protected]

unsigned OpalT38Protocol::indicatorRedundancy [protected]

unsigned OpalT38Protocol::lowSpeedRedundancy [protected]

unsigned OpalT38Protocol::highSpeedRedundancy [protected]

int OpalT38Protocol::lastSentSequenceNumber [protected]

PList<PBYTEArray> OpalT38Protocol::redundantIFPs [protected]


The documentation for this class was generated from the following file:
Generated on Fri Mar 7 06:34:05 2008 for OPAL by  doxygen 1.5.1