i2pd/libi2pd_client/Websocket.h

29 lines
383 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;
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();
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