i2pd/Websocket.h

29 lines
383 B
C
Raw Normal View History

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