mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
33 lines
735 B
C++
33 lines
735 B
C++
//------------------------------------------------------------------------------
|
|
/*
|
|
Copyright (c) 2011-2013, OpenCoin, Inc.
|
|
*/
|
|
//==============================================================================
|
|
|
|
#ifndef RIPPLE_WSDOOR_RIPPLEHEADER
|
|
#define RIPPLE_WSDOOR_RIPPLEHEADER
|
|
|
|
class WSDoor : protected Thread, LeakChecked <WSDoor>
|
|
{
|
|
public:
|
|
WSDoor (std::string const& strIp, int iPort, bool bPublic);
|
|
|
|
~WSDoor ();
|
|
|
|
void stop ();
|
|
|
|
private:
|
|
void run ();
|
|
|
|
private:
|
|
ScopedPointer <websocketpp::server_autotls*> m_endpoint;
|
|
CriticalSection m_endpointLock;
|
|
bool mPublic;
|
|
std::string mIp;
|
|
int mPort;
|
|
};
|
|
|
|
#endif
|
|
|
|
// vim:ts=4
|