1#if defined(HAVE_CONFIG_H)
16#define RESIPROCATE_SUBSYSTEM Subsystem::SIP
42 mUnknownMethodName(rhs.mUnknownMethodName),
43 mRSequence(rhs.mRSequence),
44 mCSequence(rhs.mCSequence)
53 mMethod = rhs.mMethod;
54 mUnknownMethodName = rhs.mUnknownMethodName;
55 mRSequence = rhs.mRSequence;
56 mCSequence = rhs.mCSequence;
64 return (mMethod == rhs.mMethod &&
65 (mMethod != UNKNOWN || mUnknownMethodName == rhs.mUnknownMethodName) &&
66 mRSequence == rhs.mRSequence &&
67 mCSequence == rhs.mCSequence);
105 return mUnknownMethodName;
112 return mUnknownMethodName;
146 const char* anchorPtr;
158 pb.
data(mUnknownMethodName, anchorPtr);
166 << (mMethod != UNKNOWN ?
getMethodName(mMethod) : mUnknownMethodName);
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Provides string-parsing functionality with protection from buffer overflow.
CurrentPosition skipNonWhitespace()
uint32_t uInt32()
dcm! – merge these, ask about length checks
CurrentPosition skipWhitespace()
CurrentPosition position() const
void data(Data &data, const char *start) const
make the passed in data share memory with the buffer (uses Data::Share)
Base class for all SIP grammar elements that can have parameters.
ParserCategory & operator=(const ParserCategory &rhs)
Represents the RAck header field value defined in the RFC 3262 grammar.
unsigned int & rSequence()
Data & unknownMethodName()
virtual ParserCategory * clone() const
bool operator==(const RAckCategory &rhs) const
virtual void parse(ParseBuffer &pb)
unsigned int & cSequence()
RAckCategory & operator=(const RAckCategory &)
virtual EncodeStream & encodeParsed(EncodeStream &str) const
static const char * SPACE
dcm! – add UnusedChecking(_enum) below;
const Data & getMethodName(MethodTypes t)
MethodTypes getMethodType(const Data &name)