mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 08:00:38 +03:00
31 lines
423 B
C
31 lines
423 B
C
|
#ifndef WEBSOCKET_H__
|
||
|
#define WEBSOCKET_H__
|
||
|
#include "Event.h"
|
||
|
|
||
|
|
||
|
namespace i2p
|
||
|
{
|
||
|
namespace event
|
||
|
{
|
||
|
|
||
|
class WebsocketServerImpl;
|
||
|
|
||
|
class WebsocketServer
|
||
|
{
|
||
|
public:
|
||
|
WebsocketServer(const std::string & addr, int port);
|
||
|
~WebsocketServer();
|
||
|
|
||
|
void Start();
|
||
|
void Stop();
|
||
|
|
||
|
EventListener * ToListener();
|
||
|
|
||
|
private:
|
||
|
WebsocketServerImpl * m_impl;
|
||
|
};
|
||
|
|
||
|
}
|
||
|
}
|
||
|
#endif
|