mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
- Replaced beast with websocketd and websocat. #79 #83 #84 - Implemented inbound/outbound peer connection merging. - Added graceful shutdown of hpcore with sigint. #87
21 lines
494 B
C++
21 lines
494 B
C++
#ifndef _HP_USER_SESSION_HANDLER_
|
|
#define _HP_USER_SESSION_HANDLER_
|
|
|
|
#include "../pchheader.hpp"
|
|
#include "../comm/comm_session_handler.hpp"
|
|
#include "../comm/comm_session.hpp"
|
|
|
|
namespace usr
|
|
{
|
|
|
|
class user_session_handler : public comm::comm_session_handler
|
|
{
|
|
public:
|
|
int on_connect(comm::comm_session &session) const;
|
|
int on_message(comm::comm_session &session, std::string_view message) const;
|
|
void on_close(const comm::comm_session &session) const;
|
|
};
|
|
|
|
} // namespace usr
|
|
|
|
#endif |