reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
WsBaseTransport.hxx
Go to the documentation of this file.
1#if !defined(RESIP_WSBASETRANSPORT_HXX)
2#define RESIP_WSBASETRANSPORT_HXX
3
6
7#include <memory>
8
9namespace resip
10{
11
13{
14 public:
16 explicit WsBaseTransport(std::shared_ptr<WsConnectionValidator> = nullptr, std::shared_ptr<WsCookieContextFactory> = std::make_shared<BasicWsCookieContextFactory>());
19 virtual ~WsBaseTransport() = default;
20
23
24 std::shared_ptr<WsCookieContextFactory> cookieContextFactory() const noexcept { return mCookieContextFactory; };
25
26 protected:
27 std::shared_ptr<WsConnectionValidator> mConnectionValidator;
28 std::shared_ptr<WsCookieContextFactory> mCookieContextFactory;
29};
30
31}
32
33
34#endif
35
36/* ====================================================================
37 *
38 * Copyright 2013 Daniel Pocock. All rights reserved.
39 *
40 * Redistribution and use in source and binary forms, with or without
41 * modification, are permitted provided that the following conditions
42 * are met:
43 *
44 * 1. Redistributions of source code must retain the above copyright
45 * notice, this list of conditions and the following disclaimer.
46 *
47 * 2. Redistributions in binary form must reproduce the above copyright
48 * notice, this list of conditions and the following disclaimer in
49 * the documentation and/or other materials provided with the
50 * distribution.
51 *
52 * 3. Neither the name of the author(s) nor the names of any contributors
53 * may be used to endorse or promote products derived from this software
54 * without specific prior written permission.
55 *
56 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) AND CONTRIBUTORS "AS IS" AND
57 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
58 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
59 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) OR CONTRIBUTORS BE LIABLE
60 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
61 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
62 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
63 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
64 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
65 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
66 * SUCH DAMAGE.
67 *
68 * ====================================================================
69 *
70 *
71 */
72
std::shared_ptr< WsConnectionValidator > mConnectionValidator
WsBaseTransport & operator=(const WsBaseTransport &)=delete
std::shared_ptr< WsCookieContextFactory > mCookieContextFactory
virtual ~WsBaseTransport()=default
RESIP_HeapCount(WsBaseTransport)
WsBaseTransport(const WsBaseTransport &)=delete
std::shared_ptr< WsCookieContextFactory > cookieContextFactory() const noexcept
WsBaseTransport & operator=(WsBaseTransport &&)=delete
WsBaseTransport(WsBaseTransport &&)=delete
dcm! – add UnusedChecking(_enum) below;