1#if defined(HAVE_CONFIG_H)
15#define RESIPROCATE_SUBSYSTEM Subsystem::TRANSPORT
24 unsigned transportFlags,
25 std::shared_ptr<WsConnectionValidator> connectionValidator,
26 std::shared_ptr<WsCookieContextFactory> cookieContextFactory)
27:
TcpBaseTransport(fifo, portNum, version, pinterface, socketFunc, compression, transportFlags),
34 InfoLog (<<
"Creating WS transport host=" << pinterface
36 <<
" ipv4=" << (version ==
V4) );
38 mTxFifo.setDescription(
"WsTransport::mTxFifo");
#define resip_assert_not_null(x)
Handles cross-platform sockets compatibility.
Connection implements, via sockets, ConnectionBase for managed connections.
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
A templated, threadsafe message-queue class.
virtual void init()
Performs constructor activities that depend on virtual functions specified by derived classes.
Compression & mCompression
Represents a network address.
void setType(TransportType type)
std::shared_ptr< WsConnectionValidator > mConnectionValidator
Connection * createConnection(const Tuple &who, Socket fd, bool server=false) override
Makes new Connection using provided socket.
WsTransport(Fifo< TransactionMessage > &fifo, int portNum, IpVersion version, const Data &interfaceObj, AfterSocketCreationFuncPtr socketFunc=nullptr, Compression &compression=Compression::Disabled, unsigned transportFlags=0, std::shared_ptr< WsConnectionValidator >=nullptr, std::shared_ptr< WsCookieContextFactory >=std::make_shared< BasicWsCookieContextFactory >())
This file is used to handle compatibility fixes/tweaks so reSIProcate can function on multiple platfo...
dcm! – add UnusedChecking(_enum) below;
void(* AfterSocketCreationFuncPtr)(Socket s, int transportType, const char *file, int line)
IpVersion
An enumeration of IP versions.