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"
6
7using namespace resip;
8
9#define RESIPROCATE_SUBSYSTEM Subsystem::TRANSPORT
10
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 */
#define DebugLog(args_)
Definition Logger.hxx:128
Handles cross-platform sockets compatibility.
The base class for Transport classes.
Definition Transport.hxx:83
Represents a network address.
Definition Tuple.hxx:59
dcm! – add UnusedChecking(_enum) below;
int Socket
Definition Socket.hxx:94