reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
WsConnection.cxx
Go to the documentation of this file.
1
#include "
rutil/Logger.hxx
"
2
#include "
rutil/Socket.hxx
"
3
#include "
resip/stack/TcpConnection.hxx
"
4
#include "
resip/stack/WsConnection.hxx
"
5
#include "
resip/stack/Tuple.hxx
"
6
7
using namespace
resip
;
8
9
#define RESIPROCATE_SUBSYSTEM Subsystem::TRANSPORT
10
11
WsConnection::WsConnection
(
Transport
* transport,
12
const
Tuple
& who,
Socket
fd,
13
Compression
&compression,
14
std::shared_ptr<WsConnectionValidator> wsConnectionValidator,
15
bool
isServer)
16
:
TcpConnection
(transport,who, fd, compression, isServer)
17
,
WsConnectionBase
(wsConnectionValidator)
18
{
19
DebugLog
(<<
"Creating WS connection "
<<
who
<<
" on "
<< fd);
20
}
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
WsConnection.hxx
resip::Compression
Definition
Compression.hxx:14
resip::ConnectionBase::who
Tuple & who()
Definition
ConnectionBase.hxx:50
resip::TcpConnection
Definition
TcpConnection.hxx:12
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::WsConnection::WsConnection
WsConnection()=delete
resip
dcm! – add UnusedChecking(_enum) below;
Definition
AbstractFifo.hxx:16
resip::Socket
int Socket
Definition
Socket.hxx:94
TcpConnection.hxx
resip
stack
WsConnection.cxx
Generated by
1.9.8