|
reSIProcate/stack
9694
|
#include <TimerMessage.hxx>


Public Member Functions | |
| RESIP_HeapCount (TimerMessage) | |
| TimerMessage (Data transactionId, Timer::Type type, unsigned long duration) | |
| ~TimerMessage () | |
| virtual const Data & | getTransactionId () const |
| Timer::Type | getType () const |
| unsigned long | getDuration () const |
| bool | isClientTransaction () const |
| virtual EncodeStream & | encode (EncodeStream &strm) const |
| output the entire message to stream | |
| virtual EncodeStream & | encodeBrief (EncodeStream &str) const |
| output a brief description to stream | |
Private Attributes | |
| Data | mTransactionId |
| Timer::Type | mType |
| unsigned long | mDuration |
Definition at line 13 of file TimerMessage.hxx.
| TimerMessage::TimerMessage | ( | Data | transactionId, |
| Timer::Type | type, | ||
| unsigned long | duration | ||
| ) |
Definition at line 10 of file TimerMessage.cxx.
: mTransactionId(transactionId), mType(type), mDuration(duration) {}
| TimerMessage::~TimerMessage | ( | ) |
Definition at line 33 of file TimerMessage.cxx.
{}
| EncodeStream & TimerMessage::encode | ( | EncodeStream & | strm | ) | const [virtual] |
output the entire message to stream
Implements resip::Message.
Definition at line 81 of file TimerMessage.cxx.
References EncodeStream, mDuration, mTransactionId, mType, and resip::toData().
{
return strm << "TimerMessage TransactionId[" << mTransactionId << "] "
<< " Type[" << Timer::toData(mType) << "]"
<< " duration[" << mDuration << "]";
}

| EncodeStream & TimerMessage::encodeBrief | ( | EncodeStream & | str | ) | const [virtual] |
output a brief description to stream
Implements resip::Message.
Definition at line 76 of file TimerMessage.cxx.
References mDuration, mType, and resip::toData().
{
return str << "Timer: " << Timer::toData(mType) << " " << mDuration;
}

| unsigned long TimerMessage::getDuration | ( | ) | const |
Definition at line 28 of file TimerMessage.cxx.
References mDuration.
Referenced by resip::TransactionState::processClientInvite(), resip::TransactionState::processClientNonInvite(), resip::TransactionState::processServerInvite(), and resip::TransactionState::processTimer().
{
return mDuration;
}
| const Data & TimerMessage::getTransactionId | ( | ) | const [virtual] |
Implements resip::TransactionMessage.
Definition at line 16 of file TimerMessage.cxx.
References mTransactionId.
Referenced by resip::TransactionState::processTimer().
{
return mTransactionId;
}
| Timer::Type TimerMessage::getType | ( | ) | const |
Definition at line 22 of file TimerMessage.cxx.
References mType.
Referenced by resip::TransactionState::processClientInvite(), resip::TransactionState::processClientNonInvite(), resip::TransactionState::processClientStale(), resip::TransactionState::processServerInvite(), resip::TransactionState::processServerNonInvite(), resip::TransactionState::processServerStale(), resip::TransactionState::processStateless(), and resip::TransactionState::processTimer().
{
return mType;
}
| bool TimerMessage::isClientTransaction | ( | ) | const [virtual] |
Implements resip::TransactionMessage.
Definition at line 37 of file TimerMessage.cxx.
References mType, resip::Timer::TimerA, resip::Timer::TimerB, resip::Timer::TimerC, resip::Timer::TimerCleanUp, resip::Timer::TimerD, resip::Timer::TimerE1, resip::Timer::TimerE2, resip::Timer::TimerF, resip::Timer::TimerG, resip::Timer::TimerH, resip::Timer::TimerI, resip::Timer::TimerJ, resip::Timer::TimerK, resip::Timer::TimerStaleClient, resip::Timer::TimerStaleServer, resip::Timer::TimerStateless, and resip::Timer::TimerTrying.
Referenced by resip::TransactionState::processTimer().
{
switch (mType)
{
case Timer::TimerA:
case Timer::TimerB:
case Timer::TimerD:
case Timer::TimerE1:
case Timer::TimerE2:
case Timer::TimerF:
case Timer::TimerK:
case Timer::TimerStaleClient:
case Timer::TimerCleanUp:
case Timer::TimerStateless:
return true;
case Timer::TimerG:
case Timer::TimerH:
case Timer::TimerI:
case Timer::TimerJ:
case Timer::TimerStaleServer:
case Timer::TimerTrying:
return false;
case Timer::TimerC:
assert(0);
break;
default:
assert(0);
break;
}
assert(0);
return false;
}
| resip::TimerMessage::RESIP_HeapCount | ( | TimerMessage | ) |
unsigned long resip::TimerMessage::mDuration [private] |
Definition at line 31 of file TimerMessage.hxx.
Referenced by encode(), encodeBrief(), and getDuration().
Data resip::TimerMessage::mTransactionId [private] |
Definition at line 29 of file TimerMessage.hxx.
Referenced by encode(), and getTransactionId().
Timer::Type resip::TimerMessage::mType [private] |
Definition at line 30 of file TimerMessage.hxx.
Referenced by encode(), encodeBrief(), getType(), and isClientTransaction().
1.7.5.1