diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-11-13 09:54:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-13 09:54:06 +0100 |
commit | b2f96b2892ed63381f281ac94c795265950fca9b (patch) | |
tree | 6eb851dea181aaf20fb5d877d9de1145e1d3b339 /modules/websocket/lws_client.h | |
parent | a9f6bbe1fb0a3e83b3f99292e287ee0479aee2bc (diff) | |
parent | c066db4d59d3c39de59062ddb24e473aa2c2a7b8 (diff) |
Merge pull request #22940 from Faless/lws_buffers_bis
Better buffering for WebSocket
Diffstat (limited to 'modules/websocket/lws_client.h')
-rw-r--r-- | modules/websocket/lws_client.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/websocket/lws_client.h b/modules/websocket/lws_client.h index 1bbc19f352..fdecb99925 100644 --- a/modules/websocket/lws_client.h +++ b/modules/websocket/lws_client.h @@ -43,8 +43,15 @@ class LWSClient : public WebSocketClient { LWS_HELPER(LWSClient); +private: + int _in_buf_size; + int _in_pkt_size; + int _out_buf_size; + int _out_pkt_size; + public: Error connect_to_host(String p_host, String p_path, uint16_t p_port, bool p_ssl, PoolVector<String> p_protocol = PoolVector<String>()); + int get_max_packet_size() const; Ref<WebSocketPeer> get_peer(int p_peer_id) const; void disconnect_from_host(int p_code = 1000, String p_reason = ""); IP_Address get_connected_host() const; |