OPAL Version 3.10.4

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- Data Structures
- Class Hierarchy
- Data Fields

Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
SDPSessionDescription Class Reference

`#include <sdp.h>`

## Public Member Functions

| SDPSessionDescription (time_t sessionId, unsigned version, const OpalTransportAddress &address)
void | PrintOn (ostream &strm) const
PString | Encode () const
bool | Decode (const PString &str, const OpalMediaFormatList &mediaFormats)
void | SetSessionName (const PString &v)
PString | GetSessionName () const
void | SetUserName (const PString &v)
PString | GetUserName () const
const SDPMediaDescriptionArray & | GetMediaDescriptions () const
SDPMediaDescription * | GetMediaDescriptionByType (const OpalMediaType &rtpMediaType) const
SDPMediaDescription * | GetMediaDescriptionByIndex (PINDEX i) const
void | AddMediaDescription (SDPMediaDescription *md)
void | SetDirection (const SDPMediaDescription::Direction &d)
SDPMediaDescription::Direction | GetDirection (unsigned) const
bool | IsHold () const
const OpalTransportAddress & | GetDefaultConnectAddress () const
void | SetDefaultConnectAddress (const OpalTransportAddress &address)
time_t | GetOwnerSessionId () const
void | SetOwnerSessionId (time_t value)
PINDEX | GetOwnerVersion () const
void | SetOwnerVersion (PINDEX value)
OpalTransportAddress | GetOwnerAddress () const
void | SetOwnerAddress (OpalTransportAddress addr)
unsigned | GetBandwidth (const PString &type) const
void | SetBandwidth (const PString &type, unsigned value)
OpalMediaFormatList | GetMediaFormats () const

## Static Public Member Functions

static const PCaselessString & | ConferenceTotalBandwidthType ()
static const PCaselessString & | ApplicationSpecificBandwidthType ()
static const PCaselessString & | TransportIndependentBandwidthType ()

## Protected Member Functions

void | ParseOwner (const PString &str)

## Protected Attributes

SDPMediaDescriptionArray | mediaDescriptions
SDPMediaDescription::Direction | direction
PINDEX | protocolVersion
PString | sessionName
PString | ownerUsername
time_t | ownerSessionId
unsigned | ownerVersion
OpalTransportAddress | ownerAddress
OpalTransportAddress | defaultConnectAddress
SDPBandwidth | bandwidth

## Constructor & Destructor Documentation

SDPSessionDescription::SDPSessionDescription | ( | time_t | sessionId,
|  | unsigned | version,
|  | const OpalTransportAddress & | address
| ) |  |

## Member Function Documentation

void SDPSessionDescription::AddMediaDescription | ( | SDPMediaDescription * | md | ) |

inline

References mediaDescriptions.

static const PCaselessString& SDPSessionDescription::ApplicationSpecificBandwidthType | ( |  | ) |

static

static const PCaselessString& SDPSessionDescription::ConferenceTotalBandwidthType | ( |  | ) |

static

bool SDPSessionDescription::Decode | ( | const PString & | str,
|  | const OpalMediaFormatList & | mediaFormats
| ) |  |

PString SDPSessionDescription::Encode | ( |  | ) | const

unsigned SDPSessionDescription::GetBandwidth | ( | const PString & | type | ) | const

inline

References bandwidth.

const OpalTransportAddress& SDPSessionDescription::GetDefaultConnectAddress | ( |  | ) | const

inline

References defaultConnectAddress.

SDPMediaDescription::Direction SDPSessionDescription::GetDirection | ( | unsigned |  | ) | const

SDPMediaDescription* SDPSessionDescription::GetMediaDescriptionByIndex | ( | PINDEX | i | ) | const

SDPMediaDescription* SDPSessionDescription::GetMediaDescriptionByType | ( | const OpalMediaType & | rtpMediaType | ) | const

const SDPMediaDescriptionArray& SDPSessionDescription::GetMediaDescriptions | ( |  | ) | const

inline

References mediaDescriptions.

OpalMediaFormatList SDPSessionDescription::GetMediaFormats | ( |  | ) | const

OpalTransportAddress SDPSessionDescription::GetOwnerAddress | ( |  | ) | const

inline

References ownerAddress.

time_t SDPSessionDescription::GetOwnerSessionId | ( |  | ) | const

inline

References ownerSessionId.

PINDEX SDPSessionDescription::GetOwnerVersion | ( |  | ) | const

inline

References ownerVersion.

PString SDPSessionDescription::GetSessionName | ( |  | ) | const

inline

References sessionName.

PString SDPSessionDescription::GetUserName | ( |  | ) | const

inline

References ownerUsername.

bool SDPSessionDescription::IsHold | ( |  | ) | const

void SDPSessionDescription::ParseOwner | ( | const PString & | str | ) |

protected

void SDPSessionDescription::PrintOn | ( | ostream & | strm | ) | const

void SDPSessionDescription::SetBandwidth | ( | const PString & | type,
|  | unsigned | value
| ) |  |

inline

References bandwidth.

void SDPSessionDescription::SetDefaultConnectAddress | ( | const OpalTransportAddress & | address | ) |

void SDPSessionDescription::SetDirection | ( | const SDPMediaDescription::Direction & | d | ) |

inline

References direction.

void SDPSessionDescription::SetOwnerAddress | ( | OpalTransportAddress | addr | ) |

inline

References ownerAddress.

void SDPSessionDescription::SetOwnerSessionId | ( | time_t | value | ) |

inline

References ownerSessionId.

void SDPSessionDescription::SetOwnerVersion | ( | PINDEX | value | ) |

inline

References ownerVersion.

void SDPSessionDescription::SetSessionName | ( | const PString & | v | ) |

void SDPSessionDescription::SetUserName | ( | const PString & | v | ) |

static const PCaselessString& SDPSessionDescription::TransportIndependentBandwidthType | ( |  | ) |

static

## Field Documentation

SDPBandwidth SDPSessionDescription::bandwidth

protected

Referenced by GetBandwidth(), and SetBandwidth().

OpalTransportAddress SDPSessionDescription::defaultConnectAddress

protected

Referenced by GetDefaultConnectAddress().

SDPMediaDescription::Direction SDPSessionDescription::direction

protected

Referenced by SetDirection().

SDPMediaDescriptionArray SDPSessionDescription::mediaDescriptions

protected

Referenced by AddMediaDescription(), and GetMediaDescriptions().

OpalTransportAddress SDPSessionDescription::ownerAddress

protected

Referenced by GetOwnerAddress(), and SetOwnerAddress().

time_t SDPSessionDescription::ownerSessionId

protected

Referenced by GetOwnerSessionId(), and SetOwnerSessionId().

PString SDPSessionDescription::ownerUsername

protected

Referenced by GetUserName().

unsigned SDPSessionDescription::ownerVersion

protected

Referenced by GetOwnerVersion(), and SetOwnerVersion().

PINDEX SDPSessionDescription::protocolVersion

protected

PString SDPSessionDescription::sessionName

protected

Referenced by GetSessionName().

The documentation for this class was generated from the following file:

- sdp.h