reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
SdpCandidatePair.hxx
Go to the documentation of this file.
1#if !defined(SdpCandidatePair_hxx)
2#define SdpCandidatePair_hxx
3
4#include "SdpCandidate.hxx"
5
6namespace sdpcontainer
7{
8
10{
11public:
12
22
29
33
35
36 virtual
38
40 bool operator<(const SdpCandidatePair& rhs) const;
41
42 void setLocalCandidate(const SdpCandidate& localCandidate) { mLocalCandidate = localCandidate; resetPriority(); }
43 void setRemoteCandidate(const SdpCandidate& remoteCandidate) { mRemoteCandidate = remoteCandidate; resetPriority(); }
44 void setOfferer(const SdpCandidatePairOffererType offerer) { mOfferer = offerer; resetPriority(); }
45 bool setCheckState(const SdpCandidatePairCheckState checkState);
46
48
49 const SdpCandidate& getLocalCandidate() const { return mLocalCandidate; }
50 const SdpCandidate& getRemoteCandidate() const { return mRemoteCandidate; }
51 SdpCandidatePairOffererType getOfferer() const { return mOfferer; }
52 uint64_t getPriority() const { return mPriority; }
53 SdpCandidatePairCheckState getCheckState() const { return mCheckState; }
54
55private:
56 void resetPriority();
57
58 SdpCandidate mLocalCandidate;
59 SdpCandidate mRemoteCandidate;
61 uint64_t mPriority;
63
65};
66
68
69} // namespace
70
71#endif
72
73/* ====================================================================
74
75 Copyright (c) 2007-2008, Plantronics, Inc.
76 All rights reserved.
77
78 Redistribution and use in source and binary forms, with or without
79 modification, are permitted provided that the following conditions are
80 met:
81
82 1. Redistributions of source code must retain the above copyright
83 notice, this list of conditions and the following disclaimer.
84
85 2. Redistributions in binary form must reproduce the above copyright
86 notice, this list of conditions and the following disclaimer in the
87 documentation and/or other materials provided with the distribution.
88
89 3. Neither the name of Plantronics nor the names of its contributors
90 may be used to endorse or promote products derived from this
91 software without specific prior written permission.
92
93 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
94 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
95 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
96 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
97 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
98 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
99 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
100 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
101 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
102 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
103 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
104
105 ==================================================================== */
106
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Definition Data.hxx:90
friend EncodeStream & operator<<(EncodeStream &strm, const SdpCandidatePair &)
SdpCandidatePair & operator=(const SdpCandidatePair &rhs)
SdpCandidatePairCheckState getCheckState() const
void toString(resip::Data &sdpCandidateString) const
SdpCandidatePairOffererType getOfferer() const
void setRemoteCandidate(const SdpCandidate &remoteCandidate)
static const char * SdpCandidatePairOffererTypeString[]
bool operator<(const SdpCandidatePair &rhs) const
bool setCheckState(const SdpCandidatePairCheckState checkState)
static const char * SdpCandidatePairCheckStateString[]
void setOfferer(const SdpCandidatePairOffererType offerer)
const SdpCandidate & getLocalCandidate() const
const SdpCandidate & getRemoteCandidate() const
void setLocalCandidate(const SdpCandidate &localCandidate)
EncodeStream & operator<<(EncodeStream &strm, const Sdp &)
Definition Sdp.cxx:304
#define EncodeStream
unsigned __int64 uint64_t
Definition stdint.h:95
void list()
Definition userAdmin.cxx:66