akashi-esquizolandia/include/ws_proxy.h
2020-08-26 01:28:00 -05:00

23 lines
405 B
C++

#ifndef WS_PROXY_H
#define WS_PROXY_H
#include <QMap>
#include <QTcpSocket>
#include <QtWebSockets/QtWebSockets>
class WSProxy : public QObject {
Q_OBJECT
public:
WSProxy(QObject* parent);
public slots:
void wsConnected();
private:
QWebSocketServer* server;
QMap<QWebSocket*, QTcpSocket*> tcp_sockets;
QMap<QTcpSocket*, QWebSocket*> web_sockets;
};
#endif // WS_PROXY_H