OpalT38Connection Class Reference

#include <t38proto.h>

Inheritance diagram for OpalT38Connection:

OpalFaxConnection OpalConnection List of all members.

Construction

 OpalT38Connection (OpalCall &call, OpalT38EndPoint &endpoint, const PString &filename, BOOL receive, const PString &_token, OpalConnection::StringOptions *stringOptions=NULL)
void AdjustMediaFormats (OpalMediaFormatList &mediaFormats) const
OpalMediaStreamCreateMediaStream (const OpalMediaFormat &mediaFormat, unsigned sessionID, BOOL isSource)
OpalMediaFormatList GetMediaFormats () const

Detailed Description

T.38 Connection


Constructor & Destructor Documentation

OpalT38Connection::OpalT38Connection ( OpalCall call,
OpalT38EndPoint endpoint,
const PString &  filename,
BOOL  receive,
const PString &  _token,
OpalConnection::StringOptions stringOptions = NULL 
)

Create a new endpoint.

Parameters:
call  Owner calll for connection
endpoint  Owner endpoint for connection
filename  filename to send/receive
_token  token for connection


Member Function Documentation

void OpalT38Connection::AdjustMediaFormats ( OpalMediaFormatList mediaFormats  )  const [virtual]

Adjust media formats available on a connection. This is called by a connection after it has called OpalCall::GetMediaFormats() to get all media formats that it can use so that an application may remove or reorder the media formats before they are used to open media streams.

The default behaviour calls the OpalEndPoint function of the same name.

Reimplemented from OpalFaxConnection.

OpalMediaStream* OpalT38Connection::CreateMediaStream ( const OpalMediaFormat mediaFormat,
unsigned  sessionID,
BOOL  isSource 
) [virtual]

Create a new media stream. This will create a media stream of an appropriate subclass as required by the underlying connection protocol. For instance H.323 would create an OpalRTPStream.

The sessionID parameter may not be needed by a particular media stream and may be ignored. In the case of an OpalRTPStream it us used.

Note that media streams may be created internally to the underlying protocol. This function is not the only way a stream can come into existance.

The default behaviour is pure.

Reimplemented from OpalFaxConnection.

OpalMediaFormatList OpalT38Connection::GetMediaFormats (  )  const [virtual]

Get the data formats this connection is capable of operating. This provides a list of media data format names that an OpalMediaStream may be created in within this connection.

The default behaviour returns the formats the PSoundChannel can do, typically only PCM-16.

Reimplemented from OpalFaxConnection.


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