mirror of
https://github.com/nasa/trick.git
synced 2025-01-18 18:56:31 +00:00
parent
c1cbb2ffaa
commit
2428ef3392
@ -0,0 +1,22 @@
|
|||||||
|
/*************************************************************************
|
||||||
|
PURPOSE: (Represent Websocket variable server connection.)
|
||||||
|
LIBRARY DEPENDENCIES:
|
||||||
|
( (../src/WSSession.o))
|
||||||
|
**************************************************************************/
|
||||||
|
#ifndef WEB_SOCKET_SESSION_HH
|
||||||
|
#define WEB_SOCKET_SESSION_HH
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <mongoose.h>
|
||||||
|
|
||||||
|
class WebSocketSession {
|
||||||
|
public:
|
||||||
|
WebSocketSession(struct mg_connection *nc):connection(nc){};
|
||||||
|
virtual ~WebSocketSession() {};
|
||||||
|
virtual void stageData()=0;
|
||||||
|
virtual void sendMessage()=0;
|
||||||
|
virtual int handleMessage(std::string)=0;
|
||||||
|
|
||||||
|
struct mg_connection* connection;
|
||||||
|
};
|
||||||
|
#endif
|
Loading…
Reference in New Issue
Block a user