#include <t38proto.h>
Inheritance diagram for OpalT38Connection:
Construction | |
OpalT38Connection (OpalCall &call, OpalT38EndPoint &endpoint, const PString &filename, BOOL receive, const PString &_token, OpalConnection::StringOptions *stringOptions=NULL) | |
void | AdjustMediaFormats (OpalMediaFormatList &mediaFormats) const |
OpalMediaStream * | CreateMediaStream (const OpalMediaFormat &mediaFormat, unsigned sessionID, BOOL isSource) |
OpalMediaFormatList | GetMediaFormats () const |
OpalT38Connection::OpalT38Connection | ( | OpalCall & | call, | |
OpalT38EndPoint & | endpoint, | |||
const PString & | filename, | |||
BOOL | receive, | |||
const PString & | _token, | |||
OpalConnection::StringOptions * | stringOptions = NULL | |||
) |
Create a new endpoint.
call | Owner calll for connection |
endpoint | Owner endpoint for connection |
filename | filename to send/receive |
_token | token for connection |
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.