reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
WssTransport.hxx
Go to the documentation of this file.
1#if !defined(RESIP_WSSTRANSPORT_HXX)
2#define RESIP_WSSTRANSPORT_HXX
3
4#if defined(HAVE_CONFIG_H)
5 #include "config.h"
6#endif
7
16
17#include <memory>
18#include <openssl/ssl.h>
19
20namespace resip
21{
22
23class Connection;
24class Message;
25class Security;
26
28{
29 public:
32 int portNum,
33 IpVersion version,
34 const Data& interfaceObj,
35 Security& security,
36 const Data& sipDomain,
38 AfterSocketCreationFuncPtr socketFunc = nullptr,
40 unsigned transportFlags = 0,
42 bool useEmailAsSIP = false,
43 std::shared_ptr<WsConnectionValidator> = nullptr,
44 std::shared_ptr<WsCookieContextFactory> = std::make_shared<BasicWsCookieContextFactory>(),
45 const Data& certificateFilename = "",
46 const Data& privateKeyFilename = "",
47 const Data& privateKeyPassPhrase = "");
48
49 // !bw! why is this re-defined here when the public definition in the TlsBaseTransport base class is identical?!
51 { return mUseEmailAsSIP; };
52
53 protected:
54 Connection* createConnection(const Tuple& who, Socket fd, bool server = false) override;
55};
56
57}
58
59#endif
60
61/* ====================================================================
62 * The Vovida Software License, Version 1.0
63 *
64 * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
65 *
66 * Redistribution and use in source and binary forms, with or without
67 * modification, are permitted provided that the following conditions
68 * are met:
69 *
70 * 1. Redistributions of source code must retain the above copyright
71 * notice, this list of conditions and the following disclaimer.
72 *
73 * 2. Redistributions in binary form must reproduce the above copyright
74 * notice, this list of conditions and the following disclaimer in
75 * the documentation and/or other materials provided with the
76 * distribution.
77 *
78 * 3. The names "VOCAL", "Vovida Open Communication Application Library",
79 * and "Vovida Open Communication Application Library (VOCAL)" must
80 * not be used to endorse or promote products derived from this
81 * software without prior written permission. For written
82 * permission, please contact vocal@vovida.org.
83 *
84 * 4. Products derived from this software may not be called "VOCAL", nor
85 * may "VOCAL" appear in their name, without prior written
86 * permission of Vovida Networks, Inc.
87 *
88 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
89 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
90 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
91 * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL VOVIDA
92 * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
93 * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
94 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
95 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
96 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
97 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
98 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
99 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
100 * DAMAGE.
101 *
102 * ====================================================================
103 *
104 * This software consists of voluntary contributions made by Vovida
105 * Networks, Inc. and many individuals on behalf of Vovida Networks,
106 * Inc. For more information on Vovida Networks, Inc., please see
107 * <http://www.vovida.org/>.
108 *
109 */
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(WssTransport)
Connection * createConnection(const Tuple &who, Socket fd, bool server=false) override
Makes new Connection using provided socket.
SSLType
Note: Before adding to the SSLType enum, please see the comments about mTlsCtx in resip/stack/ssl/Sec...
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.