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"
6
7#include <utility>
8
9using namespace resip;
10
11#define RESIPROCATE_SUBSYSTEM Subsystem::TRANSPORT
12
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 */
#define DebugLog(args_)
Definition Logger.hxx:128
Handles cross-platform sockets compatibility.
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Definition Data.hxx:90
The base class for Transport classes.
Definition Transport.hxx:83
Represents a network address.
Definition Tuple.hxx:59
SSLType
Note: Before adding to the SSLType enum, please see the comments about mTlsCtx in resip/stack/ssl/Sec...
dcm! – add UnusedChecking(_enum) below;
int Socket
Definition Socket.hxx:94