reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
WsTransport.hxx
Go to the documentation of this file.
1#if !defined(RESIP_WSTRANSPORT_HXX)
2#define RESIP_WSTRANSPORT_HXX
3
9
10#include <memory>
11
12namespace resip
13{
14
15class Connection;
16class Message;
17class Security;
18
20{
21 public:
24 int portNum,
25 IpVersion version,
26 const Data& interfaceObj,
27 AfterSocketCreationFuncPtr socketFunc = nullptr,
29 unsigned transportFlags = 0,
30 std::shared_ptr<WsConnectionValidator> = nullptr,
31 std::shared_ptr<WsCookieContextFactory> = std::make_shared<BasicWsCookieContextFactory>());
32
33 protected:
34 Connection* createConnection(const Tuple& who, Socket fd, bool server = false) override;
35};
36
37}
38
39
40#endif
41
42/* ====================================================================
43 *
44 * Copyright 2012 Doubango Telecom. All rights reserved.
45 *
46 * Redistribution and use in source and binary forms, with or without
47 * modification, are permitted provided that the following conditions
48 * are met:
49 *
50 * 1. Redistributions of source code must retain the above copyright
51 * notice, this list of conditions and the following disclaimer.
52 *
53 * 2. Redistributions in binary form must reproduce the above copyright
54 * notice, this list of conditions and the following disclaimer in
55 * the documentation and/or other materials provided with the
56 * distribution.
57 *
58 * 3. Neither the name of the author(s) nor the names of any contributors
59 * may be used to endorse or promote products derived from this software
60 * without specific prior written permission.
61 *
62 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) AND CONTRIBUTORS "AS IS" AND
63 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
64 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
65 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) OR CONTRIBUTORS BE LIABLE
66 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
67 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
68 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
69 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
70 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
71 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
72 * SUCH DAMAGE.
73 *
74 * ====================================================================
75 *
76 *
77 */
78
static Compression Disabled
Represents a compression configuration object with compression disabled.
Connection implements, via sockets, ConnectionBase for managed connections.
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Definition Data.hxx:90
A templated, threadsafe message-queue class.
Definition Fifo.hxx:16
Represents a network address.
Definition Tuple.hxx:59
RESIP_HeapCount(WsTransport)
Connection * createConnection(const Tuple &who, Socket fd, bool server=false) override
Makes new Connection using provided socket.
dcm! – add UnusedChecking(_enum) below;
void(* AfterSocketCreationFuncPtr)(Socket s, int transportType, const char *file, int line)
Definition Socket.hxx:107
int Socket
Definition Socket.hxx:94
IpVersion
An enumeration of IP versions.