Files
rippled/modules/ripple_app/network/WSDoor.h
2013-07-29 13:30:04 -07:00

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