diff options
| author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2018-11-03 05:46:38 +0100 |
|---|---|---|
| committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2018-11-12 22:55:17 +0100 |
| commit | c066db4d59d3c39de59062ddb24e473aa2c2a7b8 (patch) | |
| tree | 38fa43d817d7c274a60ec765cf44cd5bd51540eb /modules/websocket/websocket_multiplayer.h | |
| parent | 4847b5bff58378184a60834165af0c2ce3b84e94 (diff) | |
| download | redot-engine-c066db4d59d3c39de59062ddb24e473aa2c2a7b8.tar.gz | |
Convert WebSocket module to use PacketBuffer class
Diffstat (limited to 'modules/websocket/websocket_multiplayer.h')
| -rw-r--r-- | modules/websocket/websocket_multiplayer.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/websocket/websocket_multiplayer.h b/modules/websocket/websocket_multiplayer.h index 8edfc5296e..3cba0011fc 100644 --- a/modules/websocket/websocket_multiplayer.h +++ b/modules/websocket/websocket_multiplayer.h @@ -51,9 +51,7 @@ protected: SYS_DEL = 2, SYS_ID = 3, - PROTO_SIZE = 9, - SYS_PACKET_SIZE = 13, - MAX_PACKET_SIZE = 65536 - 14 // 5 websocket, 9 multiplayer + PROTO_SIZE = 9 }; struct Packet { @@ -93,7 +91,7 @@ public: /* PacketPeer */ virtual int get_available_packet_count() const; - virtual int get_max_packet_size() const; + virtual int get_max_packet_size() const = 0; 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); |
