Websocket peer outbound buffer fixes. Expose outbound buffered amount.
This commit is contained in:
parent
44012fa61d
commit
de02cf44ae
10 changed files with 56 additions and 4 deletions
|
|
@ -77,6 +77,9 @@ private:
|
|||
|
||||
WriteMode write_mode = WRITE_MODE_BINARY;
|
||||
|
||||
int _out_buf_size = 0;
|
||||
int _out_pkt_size = 0;
|
||||
|
||||
public:
|
||||
int close_code = -1;
|
||||
String close_reason;
|
||||
|
|
@ -86,6 +89,7 @@ public:
|
|||
virtual Error get_packet(const uint8_t **r_buffer, int &r_buffer_size);
|
||||
virtual Error put_packet(const uint8_t *p_buffer, int p_buffer_size);
|
||||
virtual int get_max_packet_size() const { return _packet_buffer.size(); };
|
||||
virtual int get_current_outbound_buffered_amount() const;
|
||||
|
||||
virtual void close_now();
|
||||
virtual void close(int p_code = 1000, String p_reason = "");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue