1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

Convert WebSocket module to use PacketBuffer class

This commit is contained in:
Fabio Alessandrelli
2018-11-03 05:46:38 +01:00
parent 4847b5bff5
commit c066db4d59
17 changed files with 164 additions and 149 deletions

View File

@@ -100,13 +100,6 @@ int WebSocketMultiplayerPeer::get_available_packet_count() const {
return _incoming_packets.size();
}
int WebSocketMultiplayerPeer::get_max_packet_size() const {
ERR_FAIL_COND_V(!_is_multiplayer, ERR_UNCONFIGURED);
return MAX_PACKET_SIZE;
}
Error WebSocketMultiplayerPeer::get_packet(const uint8_t **r_buffer, int &r_buffer_size) {
r_buffer_size = 0;