i2pd/libi2pd_client/Websocket.h

29 lines
378 B
C
Raw Normal View History

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