reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
DtlsTimer.cxx
Go to the documentation of this file.
1#ifdef HAVE_CONFIG_H
2#include "config.h"
3#endif
4
5#ifdef USE_SSL
6
7#include "DtlsTimer.hxx"
8
9using namespace dtls;
10
11DtlsTimer::DtlsTimer(unsigned int seq) :
12 mSeq(seq),
13 mValid(true)
14{
15}
16
20
21void
23{
24 std::unique_lock<std::mutex> guard;
25 if(mLock)
26 {
27 guard = std::unique_lock<std::mutex>(*mLock);
28 }
29
30 if(mValid)
31 {
32 expired();
33 }
34}
35
36void
41
42#endif //USE_SSL
43
44/* ====================================================================
45
46 Copyright (c) 2007-2026, SIP Spectrum, Inc. http://sipspectrum.com
47 Copyright (c) 2007-2008, Eric Rescorla and Derek MacDonald
48 All rights reserved.
49
50 Redistribution and use in source and binary forms, with or without
51 modification, are permitted provided that the following conditions are
52 met:
53
54 1. Redistributions of source code must retain the above copyright
55 notice, this list of conditions and the following disclaimer.
56
57 2. Redistributions in binary form must reproduce the above copyright
58 notice, this list of conditions and the following disclaimer in the
59 documentation and/or other materials provided with the distribution.
60
61 3. None of the contributors names may be used to endorse or promote
62 products derived from this software without specific prior written
63 permission.
64
65 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
66 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
67 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
68 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
69 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
70 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
71 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
72 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
73 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
74 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
75 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
76
77 ==================================================================== */
void fire(DtlsTimer *timer)
Definition DtlsTimer.cxx:37
DtlsTimer(unsigned int seq)
Definition DtlsTimer.cxx:11
virtual void expired()=0
virtual void fire()
Definition DtlsTimer.cxx:22
virtual ~DtlsTimer()
Definition DtlsTimer.cxx:17
void list()
Definition userAdmin.cxx:66