reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
WssConnection.cxx
Go to the documentation of this file.
1
#include "
rutil/Logger.hxx
"
2
#include "
rutil/Socket.hxx
"
3
#include "
resip/stack/ssl/TlsConnection.hxx
"
4
#include "
resip/stack/ssl/WssConnection.hxx
"
5
#include "
resip/stack/Tuple.hxx
"
6
7
#include <utility>
8
9
using namespace
resip
;
10
11
#define RESIPROCATE_SUBSYSTEM Subsystem::TRANSPORT
12
13
WssConnection::WssConnection
(
Transport
* transport,
const
Tuple
& who,
Socket
fd,
14
Security
* security,
bool
server,
Data
domain,
15
SecurityTypes::SSLType
sslType ,
Compression
&compression,
16
std::shared_ptr<WsConnectionValidator> wsConnectionValidator)
17
:
TlsConnection
(transport, who, fd, security, server, domain, sslType, compression),
18
WsConnectionBase
(wsConnectionValidator)
19
{
20
DebugLog
(<<
"Creating WSS connection "
<<
who
<<
" on "
<< fd);
21
}
22
23
/* ====================================================================
24
* BSD License
25
*
26
* Copyright (c) 2013 Catalin Constantin Usurelu All rights reserved.
27
*
28
* Redistribution and use in source and binary forms, with or without
29
* modification, are permitted provided that the following conditions
30
* are met:
31
*
32
* 1. Redistributions of source code must retain the above copyright
33
* notice, this list of conditions and the following disclaimer.
34
*
35
* 2. Redistributions in binary form must reproduce the above copyright
36
* notice, this list of conditions and the following disclaimer in
37
* the documentation and/or other materials provided with the
38
* distribution.
39
*
40
* 3. Neither the name of the author(s) nor the names of any contributors
41
* may be used to endorse or promote products derived from this software
42
* without specific prior written permission.
43
*
44
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) AND CONTRIBUTORS "AS IS" AND
45
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
46
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
47
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) OR CONTRIBUTORS BE LIABLE
48
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
49
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
50
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
51
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
52
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
53
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
54
* SUCH DAMAGE.
55
*
56
* ====================================================================
57
*
58
*/
Logger.hxx
DebugLog
#define DebugLog(args_)
Definition
Logger.hxx:128
Socket.hxx
Handles cross-platform sockets compatibility.
Tuple.hxx
WssConnection.hxx
resip::Compression
Definition
Compression.hxx:14
resip::ConnectionBase::who
Tuple & who()
Definition
ConnectionBase.hxx:50
resip::Data
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Definition
Data.hxx:90
resip::Security
Definition
Security.hxx:272
resip::TlsConnection
Definition
TlsConnection.hxx:33
resip::Transport
The base class for Transport classes.
Definition
Transport.hxx:83
resip::Tuple
Represents a network address.
Definition
Tuple.hxx:59
resip::WsConnectionBase
Definition
WsConnectionBase.hxx:15
resip::WssConnection::WssConnection
WssConnection()=delete
resip::SecurityTypes::SSLType
SSLType
Note: Before adding to the SSLType enum, please see the comments about mTlsCtx in resip/stack/ssl/Sec...
Definition
SecurityTypes.hxx:33
resip
dcm! – add UnusedChecking(_enum) below;
Definition
AbstractFifo.hxx:16
resip::Socket
int Socket
Definition
Socket.hxx:94
TlsConnection.hxx
resip
stack
ssl
WssConnection.cxx
Generated by
1.9.8