godot/modules/webrtc
Fabio Alessandrelli 1d9993936c
[Net] Fix WebRTC returning packets from peers too early.
Due to the async nature of WebRTC implementations, the multiplayer peer
could end up having queued packets from a given connection before it is
able to emit the "peer_added" signal.
This commit ensures that packets from peers which are not notified yet
are skipped by `get_packet` and `get_available_packet_count`.

(cherry picked from commit 9b8db7c63a)
2021-12-16 22:58:48 +01:00
..
doc_classes doc: Fix style inconsistencies for `[b]Note:[/b]` paragraphs 2021-10-06 09:29:32 +02:00
SCsub SCons: Add explicit dependencies on thirdparty code in cloned env 2021-04-29 16:57:00 +02:00
config.py SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
library_godot_webrtc.js Add get_buffered_amount() to WebRTCDataChannel 2021-07-20 16:52:33 -05:00
register_types.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
register_types.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
webrtc_data_channel.cpp Add get_buffered_amount() to WebRTCDataChannel 2021-07-20 16:52:33 -05:00
webrtc_data_channel.h Add get_buffered_amount() to WebRTCDataChannel 2021-07-20 16:52:33 -05:00
webrtc_data_channel_gdnative.cpp Add get_buffered_amount() to WebRTCDataChannel 2021-07-20 16:52:33 -05:00
webrtc_data_channel_gdnative.h Add get_buffered_amount() to WebRTCDataChannel 2021-07-20 16:52:33 -05:00
webrtc_data_channel_js.cpp Add get_buffered_amount() to WebRTCDataChannel 2021-07-20 16:52:33 -05:00
webrtc_data_channel_js.h Add get_buffered_amount() to WebRTCDataChannel 2021-07-20 16:52:33 -05:00
webrtc_multiplayer.cpp [Net] Fix WebRTC returning packets from peers too early. 2021-12-16 22:58:48 +01:00
webrtc_multiplayer.h Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
webrtc_peer_connection.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
webrtc_peer_connection.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
webrtc_peer_connection_gdnative.cpp Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
webrtc_peer_connection_gdnative.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
webrtc_peer_connection_js.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
webrtc_peer_connection_js.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00