OpalT38Protocol Class Reference

#include <t38proto.h>

List of all members.

Public Member Functions

H323TransportGetTransport () const
void SetTransport (H323Transport *transport, BOOL autoDelete=TRUE)
Construction
 OpalT38Protocol ()
 ~OpalT38Protocol ()
Operations
virtual void CleanUpOnTermination ()
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

H323Transporttransport
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.

Definition at line 81 of file t38proto.h.


Constructor & Destructor Documentation

OpalT38Protocol::OpalT38Protocol (  ) 

Create a new protocol handler.

Definition at line 114 of file t38proto.cxx.

References autoDeleteTransport, corrigendumASN, highSpeedRedundancy, indicatorRedundancy, lastSentSequenceNumber, lowSpeedRedundancy, and transport.

OpalT38Protocol::~OpalT38Protocol (  ) 

Destroy the protocol handler.

Definition at line 126 of file t38proto.cxx.

References autoDeleteTransport, and transport.


Member Function Documentation

void OpalT38Protocol::CleanUpOnTermination (  )  [virtual]

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

Definition at line 133 of file t38proto.cxx.

References H323Transport::Close(), and transport.

Referenced by H323_T38Channel::CleanUpOnTermination().

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.

Definition at line 152 of file t38proto.cxx.

References T38_Type_of_msg_t30_indicator::e_no_signal, transport, and WriteIndicator().

Referenced by H323_T38Channel::Transmit().

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

Write packet to the T.38 connection.

Definition at line 165 of file t38proto.cxx.

References corrigendumASN, T38_IFPPacket::e_data_field, T38_Data_Field_subtype::e_field_data, T38_UDPTLPacket_error_recovery::e_secondary_ifp_packets, T38_Type_of_msg::e_t30_indicator, T38_Type_of_msg_data::e_v21, T38_UDPTLPacket::Encode(), T38_UDPTLPacket_primary_ifp_packet::EncodeSubType(), highSpeedRedundancy, indicatorRedundancy, lastSentSequenceNumber, lowSpeedRedundancy, T38_PreCorrigendum_IFPPacket::m_data_field, T38_UDPTLPacket::m_error_recovery, T38_UDPTLPacket::m_primary_ifp_packet, T38_UDPTLPacket::m_seq_number, T38_PreCorrigendum_IFPPacket::m_type_of_msg, redundantIFPs, transport, and H323Transport::WritePDU().

Referenced by WriteIndicator(), and WriteMultipleData().

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

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

Definition at line 249 of file t38proto.cxx.

References T38_Type_of_msg::e_t30_indicator, T38_IFPPacket::m_type_of_msg, and WritePacket().

Referenced by Originate().

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

Write data packet to the T.38 connection.

Definition at line 261 of file t38proto.cxx.

References T38_Type_of_msg::e_data, T38_IFPPacket::e_data_field, T38_IFPPacket::m_data_field, T38_IFPPacket::m_type_of_msg, and WritePacket().

Referenced by WriteData().

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

Write data packet to the T.38 connection.

Definition at line 283 of file t38proto.cxx.

References WriteMultipleData().

BOOL OpalT38Protocol::Answer (  )  [virtual]

Handle the origination of a T.38 connection.

Definition at line 289 of file t38proto.cxx.

References H323Transport::AcceptFromAny, H323Transport::AcceptFromLastReceivedOnly, T38_UDPTLPacket::Decode(), T38_UDPTLPacket_error_recovery::e_secondary_ifp_packets, H323Transport::GetLastReceivedAddress(), HandlePacketLost(), HandleRawIFP(), T38_UDPTLPacket::m_error_recovery, T38_UDPTLPacket::m_primary_ifp_packet, T38_UDPTLPacket::m_seq_number, H323Transport::ReadPDU(), H323Transport::SetPromiscuous(), and transport.

Referenced by H323_T38Channel::Receive().

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

Handle incoming T.38 packet.

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

Definition at line 431 of file t38proto.cxx.

References T38_Type_of_msg::e_t30_indicator, T38_IFPPacket::m_data_field, T38_IFPPacket::m_type_of_msg, OnData(), and OnIndicator().

Referenced by HandleRawIFP().

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

Handle lost T.38 packets.

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

Referenced by Answer().

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

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

Definition at line 446 of file t38proto.cxx.

References T38_Type_of_msg_t30_indicator::e_ced, T38_Type_of_msg_t30_indicator::e_cng, T38_Type_of_msg_t30_indicator::e_no_signal, T38_Type_of_msg_t30_indicator::e_v17_12000_long_training, T38_Type_of_msg_t30_indicator::e_v17_12000_short_training, T38_Type_of_msg_t30_indicator::e_v17_14400_long_training, T38_Type_of_msg_t30_indicator::e_v17_14400_short_training, T38_Type_of_msg_t30_indicator::e_v17_7200_long_training, T38_Type_of_msg_t30_indicator::e_v17_7200_short_training, T38_Type_of_msg_t30_indicator::e_v17_9600_long_training, T38_Type_of_msg_t30_indicator::e_v17_9600_short_training, T38_Type_of_msg_t30_indicator::e_v21_preamble, T38_Type_of_msg_t30_indicator::e_v27_2400_training, T38_Type_of_msg_t30_indicator::e_v27_4800_training, T38_Type_of_msg_t30_indicator::e_v29_7200_training, T38_Type_of_msg_t30_indicator::e_v29_9600_training, OnCED(), OnCNG(), OnPreamble(), and OnTraining().

Referenced by HandlePacket().

BOOL OpalT38Protocol::OnCNG (  )  [virtual]

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

Definition at line 483 of file t38proto.cxx.

Referenced by OnIndicator().

BOOL OpalT38Protocol::OnCED (  )  [virtual]

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

Definition at line 489 of file t38proto.cxx.

Referenced by OnIndicator().

BOOL OpalT38Protocol::OnPreamble (  )  [virtual]

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

Definition at line 495 of file t38proto.cxx.

Referenced by OnIndicator().

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

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

Definition at line 501 of file t38proto.cxx.

Referenced by OnIndicator().

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.

Definition at line 507 of file t38proto.cxx.

Referenced by HandlePacket().


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