summaryrefslogtreecommitdiffstats
path: root/modules/websocket/websocket_multiplayer_peer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix MultiplayerAPI crash when peer impl misbehave.Fabio Alessandrelli2020-01-211-1/+1
| | | | | Also fix WebSocketMultiplayer::get_available_packet_count() return value when peer is not configured to use the multiplayer API.
* Update copyright statements to 2020Rémi Verschelde2020-01-011-2/+2
| | | | | | | | | | | Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
* Merge pull request #31483 from Faless/ws/fix_double_relayRémi Verschelde2019-08-201-8/+2
|\ | | | | Fix WebSocketServer relaying message twice.
| * Fix WebSocketServer relaying message 2 times.Fabio Alessandrelli2019-08-191-8/+2
| | | | | | | | | | | | | | | | | | The WebSocketMultiplayerPeer was relaying the same message two times, both in _server_relay and _process_multiplayer (which was only supposed to store the packet, given the server was one of the destination). _process_multiplayer now only store the packet, and calls _server_relay which will relay the message to other clients if needed.
* | WebSocketServer now sanitize destination peers.Fabio Alessandrelli2019-08-191-1/+4
|/ | | | | | | When relaying messages in multiplayer mode. Could cause a crash in case a malicious client sends a bogus packet and for those cases where a peer has just disconnected and a message arrive from another peer with the disconnected one as destination.
* Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in rest of 'modules/'Robin Hübner2019-08-121-10/+5
|
* Fixes minor issues found by static analyzerqarmin2019-07-071-1/+1
|
* Expose WebSocket set_buffers and document it.Fabio Alessandrelli2019-06-151-0/+1
|
* Fix -Wsign-compare warnings.marxin2019-02-271-3/+3
| | | | | I decided to modify code in a defensive way. Ideally functions like size() or length() should return an unsigned type.
* Modules: Ensure classes match their header filenameRémi Verschelde2019-02-121-0/+361
Renamed: - `modules/mono/mono_gd/gd_mono_class_member.h` -> `i_mono_class_member.h` - `modules/upnp/upnpdevice.h` -> `upnp_device.h` - `modules/websocket/websocket_multiplayer.h` -> `websocket_multiplayer_peer.h`