Namespaces
Better File handling
This commit is contained in:
1 parent
9dcca746ed
commit
b22a60c85e
24 files changed
+1106
-781
No files matched your search
@@ -19,23 +19,26 @@
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
class Websocket
|
||||
namespace germanairlinesva_websocket
|
||||
{
|
||||
private:
|
||||
char lastPath[513] = "";
|
||||
char lastHash[2 * MD5LEN + 1] = "";
|
||||
ix::WebSocket *webSocket = nullptr;
|
||||
std::string host;
|
||||
std::string user;
|
||||
std::function<void(std::string)> toLog;
|
||||
class Websocket
|
||||
{
|
||||
private:
|
||||
char lastPath[513] = "";
|
||||
char lastHash[2 * MD5LEN + 1] = "";
|
||||
ix::WebSocket *webSocket = nullptr;
|
||||
std::string host;
|
||||
std::string user;
|
||||
std::function<void(std::string)> toLog;
|
||||
|
||||
public:
|
||||
explicit Websocket(std::string host,
|
||||
std::string user,
|
||||
std::function<void(const std::string)> toLog);
|
||||
~Websocket();
|
||||
void onClientMessageCallback(const ix::WebSocketMessagePtr &msg);
|
||||
void sendData(data &d);
|
||||
};
|
||||
public:
|
||||
explicit Websocket(std::string host,
|
||||
std::string user,
|
||||
std::function<void(const std::string)> toLog);
|
||||
~Websocket();
|
||||
void onClientMessageCallback(const ix::WebSocketMessagePtr &msg);
|
||||
void sendData(data &d);
|
||||
};
|
||||
} // namespace germanairlinesva_websocket
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user