reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
TurnAllocationKey.hxx
Go to the documentation of this file.
1
#ifndef TURNALLOCATIONKEY_HXX
2
#define TURNALLOCATIONKEY_HXX
3
4
#include "
StunTuple.hxx
"
5
6
namespace
reTurn
{
7
8
class
StunTuple;
9
10
class
TurnAllocationKey
11
{
12
public
:
13
explicit
TurnAllocationKey
(
const
StunTuple
&
clientLocalTuple
,
14
const
StunTuple
&
clientRemoteTuple
);
15
16
bool
operator==
(
const
TurnAllocationKey
&
rhs
)
const
;
17
bool
operator!=
(
const
TurnAllocationKey
&
rhs
)
const
;
18
bool
operator<
(
const
TurnAllocationKey
&
rhs
)
const
;
19
20
const
StunTuple
&
getClientLocalTuple
()
const
{
return
mClientLocalTuple; }
21
const
StunTuple
&
getClientRemoteTuple
()
const
{
return
mClientRemoteTuple; }
22
23
private
:
24
StunTuple
mClientLocalTuple;
25
StunTuple
mClientRemoteTuple;
26
};
27
28
}
29
30
#endif
31
32
33
/* ====================================================================
34
35
Copyright (c) 2007-2008, Plantronics, Inc.
36
All rights reserved.
37
38
Redistribution and use in source and binary forms, with or without
39
modification, are permitted provided that the following conditions are
40
met:
41
42
1. Redistributions of source code must retain the above copyright
43
notice, this list of conditions and the following disclaimer.
44
45
2. Redistributions in binary form must reproduce the above copyright
46
notice, this list of conditions and the following disclaimer in the
47
documentation and/or other materials provided with the distribution.
48
49
3. Neither the name of Plantronics nor the names of its contributors
50
may be used to endorse or promote products derived from this
51
software without specific prior written permission.
52
53
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
54
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
55
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
56
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
57
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
58
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
59
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
60
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
61
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
62
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
63
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
64
65
==================================================================== */
StunTuple.hxx
reTurn::StunTuple
Definition
StunTuple.hxx:24
reTurn::TurnAllocationKey
Definition
TurnAllocationKey.hxx:11
reTurn::TurnAllocationKey::operator<
bool operator<(const TurnAllocationKey &rhs) const
Definition
TurnAllocationKey.cxx:28
reTurn::TurnAllocationKey::getClientRemoteTuple
const StunTuple & getClientRemoteTuple() const
Definition
TurnAllocationKey.hxx:21
reTurn::TurnAllocationKey::operator!=
bool operator!=(const TurnAllocationKey &rhs) const
Definition
TurnAllocationKey.cxx:22
reTurn::TurnAllocationKey::getClientLocalTuple
const StunTuple & getClientLocalTuple() const
Definition
TurnAllocationKey.hxx:20
reTurn::TurnAllocationKey::operator==
bool operator==(const TurnAllocationKey &rhs) const
Definition
TurnAllocationKey.cxx:16
reTurn
Definition
AsyncSocketBase.cxx:16
list
void list()
Definition
userAdmin.cxx:66
reTurn
TurnAllocationKey.hxx
Generated by
1.9.8