WebCFace 2.5.2
Web-based Communication Framework & Dashboard-like UI
|
#include "webcface/internal/client_ws.h"
#include "webcface/internal/client_internal.h"
#include "webcface/client.h"
#include "webcface/common/internal/unix_path.h"
#include <curl/curl.h>
#include <string>
#include <cstdlib>
#include <thread>
Classes | |
struct | CurlInitializer |
Namespaces | |
namespace | webcface |
namespace | webcface::internal |
namespace | webcface::internal::WebSocket |
Functions | |
void | init (const std::shared_ptr< internal::ClientData > &data) |
WebSocketに接続する | |
void | close (const std::shared_ptr< internal::ClientData > &data) |
切断しhandleをfreeする | |
bool | recv (const std::shared_ptr< internal::ClientData > &data, const std::function< void(std::string &&)> &cb) |
messageを1回受信しdata->onRecvを呼ぶ | |
void | send (const std::shared_ptr< internal::ClientData > &data, const std::string &msg) |
メッセージを送信する | |