|
reSIProcate/stack
9694
|
#include <string.h>#include <cstdio>#include <cassert>#include "resip/stack/MethodTypes.hxx"#include "resip/stack/Symbols.hxx"#include "rutil/Data.hxx"#include "MethodHash.hxx"
Go to the source code of this file.
Namespaces | |
| namespace | resip |
SERNonceHelper implements the makeNonce function in the same way as SIP Express Router (SER) - http://www.iptel.org/ser. | |
Defines | |
| #define | defineMethod(_enum, _name, _rfc) _name |
Functions | |
| int | strncasecmp (const char *a, const char *b, int len) |
Variables | |
| Data | resip::MethodNames [] |
| #define defineMethod | ( | _enum, | |
| _name, | |||
| _rfc | |||
| ) | _name |
Definition at line 15 of file MethodTypes.cxx.
| int strncasecmp | ( | const char * | a, |
| const char * | b, | ||
| int | len | ||
| ) |
ah! whoever implemented this should be shot. ah! should use library based strncasecmp() ! ah! have fixed it up a bit.
Definition at line 67 of file MethodTypes.cxx.
References len.
Referenced by resip::SipMessage::addHeader(), resip::BranchParameter::BranchParameter(), processExpect(), processInject(), and resip::SipMessage::setStartLine().
{
for (int i = 0; i < len; i++)
{
int c = tolower(a[i]) - tolower(b[i]);
if (c) return c;
}
return 0;
}
1.7.5.1