12# include <sys/syscall.h>
22#define RESIPROCATE_SUBSYSTEM Subsystem::SIP
100 return "Timer Trying";
102 return "Timer StaleClient";
104 return "Timer StaleServer";
106 return "Timer Stateless";
108 return "Timer Cleanup";
110 return "TcpConnectTimer";
114 return "Bad Bad Bad in timer";
118TransactionTimer::TransactionTimer(
unsigned long ms,
120 const Data& transactionId) :
121 mWhen(ms +
Timer::getTimeMs()),
123 mTransactionId(transactionId),
131 str <<
"TransactionTimer[ when=" <<
mWhen <<
" rel=";
138 str << (
mWhen - now);
144#ifndef RESIP_USE_STL_STREAMS
149 str <<
"TransactionTimer[ when=" <<
mWhen <<
" rel=";
156 str << (
mWhen - now);
163TimerWithPayload::TimerWithPayload(
unsigned long ms,
Message* message) :
164 mWhen(ms +
Timer::getTimeMs()),
174 str <<
"TimerWithPayload[ when=" <<
mWhen <<
" rel=";
181 str << (
mWhen - now);
187#ifndef RESIP_USE_STL_STREAMS
192 str <<
"TimerWithPayload[ when=" <<
mWhen <<
" rel=";
199 str << (
mWhen - now);
#define resip_assert(x)
This file needs to work for both C and C++ code.
Handles cross-platform sockets compatibility.
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
The base-class used for message-passing.
EncodeStream & encode(EncodeStream &str) const
This class is used to get the current system time.
static unsigned long T100
static Data toData(Type timer)
static unsigned long TcpConnectTimeout
static void resetT1(unsigned long t1)
static uint64_t getTimeMs()
Returns the current clock time in milliseconds.
EncodeStream & encode(EncodeStream &str) const
dcm! – add UnusedChecking(_enum) below;
unsigned long long uint64_t