reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
resip::SdpContents::Session::Connection Class Reference

Process c= (connection) lines in SDP. More...

#include <SdpContents.hxx>

Public Member Functions

 Connection (AddrType addType, const Data &address, unsigned long ttl=0)
 constructor
 
 Connection (const Connection &rhs)
 
Connection & operator= (const Connection &rhs)
 
void parse (ParseBuffer &pb)
 
EncodeStream & encode (EncodeStream &) const
 
AddrType getAddressType () const
 returns the connection address type
 
const Data & getAddress () const
 returns the connection address
 
void setAddress (const Data &host, AddrType type=IP4)
 set the address for the connection
 
unsigned long ttl () const
 
unsigned long & ttl ()
 

Friends

class Session
 
class Medium
 

Detailed Description

Process c= (connection) lines in SDP.

This line specifies the IP address and address type used in the session

Definition at line 349 of file SdpContents.hxx.

Constructor & Destructor Documentation

◆ Connection() [1/2]

SdpContents::Session::Connection::Connection ( AddrType  addType,
const Data &  address,
unsigned long  ttl = 0 
)

constructor

Parameters
addTypeaddress type (IP4 or IP6)
addressIP address
ttltime to live

Definition at line 502 of file SdpContents.cxx.

◆ Connection() [2/2]

SdpContents::Session::Connection::Connection ( const Connection &  rhs)

Definition at line 516 of file SdpContents.cxx.

Member Function Documentation

◆ encode()

EncodeStream & SdpContents::Session::Connection::encode ( EncodeStream &  s) const

Definition at line 536 of file SdpContents.cxx.

◆ getAddress()

const Data & resip::SdpContents::Session::Connection::getAddress ( ) const
inline

returns the connection address

Returns
IP address

Definition at line 378 of file SdpContents.hxx.

◆ getAddressType()

AddrType resip::SdpContents::Session::Connection::getAddressType ( ) const
inline

returns the connection address type

Returns
address type (IP4 or IP6)

Definition at line 372 of file SdpContents.hxx.

◆ operator=()

SdpContents::Session::Connection & SdpContents::Session::Connection::operator= ( const Connection &  rhs)

Definition at line 524 of file SdpContents.cxx.

◆ parse()

void SdpContents::Session::Connection::parse ( ParseBuffer &  pb)

Definition at line 557 of file SdpContents.cxx.

◆ setAddress()

void SdpContents::Session::Connection::setAddress ( const Data &  host,
AddrType  type = IP4 
)

set the address for the connection

Parameters
hostIP address to associate with the connection
typetype of addressing

Definition at line 550 of file SdpContents.cxx.

◆ ttl() [1/2]

unsigned long & resip::SdpContents::Session::Connection::ttl ( )
inline

Definition at line 387 of file SdpContents.hxx.

◆ ttl() [2/2]

unsigned long resip::SdpContents::Session::Connection::ttl ( ) const
inline

Definition at line 386 of file SdpContents.hxx.

Friends And Related Symbol Documentation

◆ Medium

friend class Medium
friend

Definition at line 397 of file SdpContents.hxx.

◆ Session

friend class Session
friend

Definition at line 396 of file SdpContents.hxx.


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