reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
ChallengeInfo.cxx
Go to the documentation of this file.
1
2#include "rutil/ResipAssert.h"
3
5#include "rutil/Data.hxx"
6#include "rutil/Logger.hxx"
7
8using namespace resip;
9using namespace std;
10
11#define RESIPROCATE_SUBSYSTEM Subsystem::DUM
12
13
15 bool challengeRequired,
16 const Data& transactionId ):
17 DumFeatureMessage(transactionId),
18 mFailed(failed),
19 mChallengeRequired(challengeRequired)
20{
21}
22
26
27bool
29{
30 return mFailed;
31}
32
33bool
35{
36 return mChallengeRequired;
37}
38
41{
42 resip_assert(false); return NULL;
43}
44
45std::ostream&
46ChallengeInfo::encode(std::ostream& strm) const
47{
48 strm << "ChallengeInfo " << mFailed << " : " << mChallengeRequired;
49 return strm;
50}
51
52std::ostream&
53ChallengeInfo::encodeBrief(std::ostream& strm) const
54{
55 return encode(strm);
56}
57
58std::ostream&
59resip::operator<<(std::ostream& strm, const ChallengeInfo& msg)
60{
61 return msg.encode(strm);
62}
63
64/* ====================================================================
65 * The Vovida Software License, Version 1.0
66 *
67 * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
68 *
69 * Redistribution and use in source and binary forms, with or without
70 * modification, are permitted provided that the following conditions
71 * are met:
72 *
73 * 1. Redistributions of source code must retain the above copyright
74 * notice, this list of conditions and the following disclaimer.
75 *
76 * 2. Redistributions in binary form must reproduce the above copyright
77 * notice, this list of conditions and the following disclaimer in
78 * the documentation and/or other materials provided with the
79 * distribution.
80 *
81 * 3. The names "VOCAL", "Vovida Open Communication Application Library",
82 * and "Vovida Open Communication Application Library (VOCAL)" must
83 * not be used to endorse or promote products derived from this
84 * software without prior written permission. For written
85 * permission, please contact vocal@vovida.org.
86 *
87 * 4. Products derived from this software may not be called "VOCAL", nor
88 * may "VOCAL" appear in their name, without prior written
89 * permission of Vovida Networks, Inc.
90 *
91 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
92 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
93 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
94 * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL VOVIDA
95 * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
96 * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
97 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
98 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
99 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
100 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
101 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
102 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
103 * DAMAGE.
104 *
105 * ====================================================================
106 *
107 * This software consists of voluntary contributions made by Vovida
108 * Networks, Inc. and many individuals on behalf of Vovida Networks,
109 * Inc. For more information on Vovida Networks, Inc., please see
110 * <http://www.vovida.org/>.
111 *
112 */
113
#define resip_assert(x)
This file needs to work for both C and C++ code.
ChallengeInfo(bool failed, bool challengeRequired, const Data &transactionId)
virtual std::ostream & encodeBrief(std::ostream &strm) const
virtual resip::Message * clone() const
virtual std::ostream & encode(std::ostream &strm) const
bool isChallengeRequired() const
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Definition Data.hxx:90
dcm! – what is the intent of ApplicationMessage, especially as used in
The base-class used for message-passing.
Definition Message.hxx:21
dcm! – add UnusedChecking(_enum) below;
EncodeStream & operator<<(EncodeStream &strm, const BaseException &e)