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

processes o= lines in SDP More...

#include <SdpContents.hxx>

Public Member Functions

 Origin (const Data &user, const uint64_t &sessionId, const uint64_t &version, AddrType addr, const Data &address)
 constructor for origin line
 
 Origin (const Origin &rhs)
 
Origin & operator= (const Origin &rhs)
 
void parse (ParseBuffer &pb)
 
EncodeStream & encode (EncodeStream &) const
 
const uint64_t & getSessionId () const
 returns the session ID
 
uint64_t & getSessionId ()
 returns the session ID
 
const uint64_t & getVersion () const
 returns the session version
 
uint64_t & getVersion ()
 returns the session version
 
const Data & user () const
 returns the user string for the session
 
Data & user ()
 returns the user string for the session
 
AddrType getAddressType () const
 returns the session address type
 
const Data & getAddress () const
 returns the session address type
 
void setAddress (const Data &host, AddrType type=IP4)
 set the address for the session
 

Friends

class Session
 

Detailed Description

processes o= lines in SDP

Definition at line 183 of file SdpContents.hxx.

Constructor & Destructor Documentation

◆ Origin() [1/2]

SdpContents::Session::Origin::Origin ( const Data &  user,
const uint64_t &  sessionId,
const uint64_t &  version,
AddrType  addr,
const Data &  address 
)

constructor for origin line

Parameters
usersession user
sessionIdsession ID
versionsession version
addrsession address type (IP4 or IP6)
addressIP address of the session

Definition at line 275 of file SdpContents.cxx.

◆ Origin() [2/2]

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

Definition at line 251 of file SdpContents.cxx.

Member Function Documentation

◆ encode()

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

Definition at line 288 of file SdpContents.cxx.

◆ getAddress()

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

returns the session address type

Returns
address type (IP4 or IP6)

Definition at line 241 of file SdpContents.hxx.

◆ getAddressType()

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

returns the session address type

Returns
address type (IP4 or IP6)

Definition at line 236 of file SdpContents.hxx.

◆ getSessionId() [1/2]

uint64_t & resip::SdpContents::Session::Origin::getSessionId ( )
inline

returns the session ID

Returns
session ID

Definition at line 213 of file SdpContents.hxx.

◆ getSessionId() [2/2]

const uint64_t & resip::SdpContents::Session::Origin::getSessionId ( ) const
inline

returns the session ID

Returns
session ID

Definition at line 209 of file SdpContents.hxx.

◆ getVersion() [1/2]

uint64_t & resip::SdpContents::Session::Origin::getVersion ( )
inline

returns the session version

Returns
session version

Definition at line 222 of file SdpContents.hxx.

◆ getVersion() [2/2]

const uint64_t & resip::SdpContents::Session::Origin::getVersion ( ) const
inline

returns the session version

Returns
session version

Definition at line 218 of file SdpContents.hxx.

◆ operator=()

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

Definition at line 261 of file SdpContents.cxx.

◆ parse()

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

Definition at line 308 of file SdpContents.cxx.

◆ setAddress()

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

set the address for the session

Parameters
hostIP address to associate with the session
typetype of addressing

Definition at line 301 of file SdpContents.cxx.

◆ user() [1/2]

Data & resip::SdpContents::Session::Origin::user ( )
inline

returns the user string for the session

Returns
user string

Definition at line 230 of file SdpContents.hxx.

◆ user() [2/2]

const Data & resip::SdpContents::Session::Origin::user ( ) const
inline

returns the user string for the session

Returns
user string

Definition at line 226 of file SdpContents.hxx.

Friends And Related Symbol Documentation

◆ Session

friend class Session
friend

Definition at line 259 of file SdpContents.hxx.


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