1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-09 11:27:53 +00:00
i2pd/Websocket.h

29 lines
383 B
C
Raw Normal View History

2016-10-20 13:12:15 +00:00
#ifndef WEBSOCKET_H__
#define WEBSOCKET_H__
#include "Event.h"
namespace i2p
{
2016-11-01 14:26:40 +00:00
namespace event
{
2016-10-20 13:12:15 +00:00
2016-11-01 14:26:40 +00:00
class WebsocketServerImpl;
class WebsocketServer
{
public:
WebsocketServer(const std::string & addr, int port);
~WebsocketServer();
2016-10-20 13:12:15 +00:00
2016-11-01 14:26:40 +00:00
void Start();
void Stop();
2016-10-20 13:12:15 +00:00
2016-11-01 14:26:40 +00:00
EventListener * ToListener();
private:
WebsocketServerImpl * m_impl;
};
2016-10-20 13:12:15 +00:00
2016-11-01 14:26:40 +00:00
}
2016-10-20 13:12:15 +00:00
}
#endif