summaryrefslogtreecommitdiffstats
path: root/modules/websocket
Commit message (Collapse)AuthorAgeFilesLines
* Update libwebsockets to 3.1 (plus UWP patch)Fabio Alessandrelli2019-03-062-58/+67
|
* Fix -Wsign-compare warnings.marxin2019-02-272-6/+6
| | | | | I decided to modify code in a defensive way. Ideally functions like size() or length() should return an unsigned type.
* Add -Wshadow=local to warnings and fix reported issues.marxin2019-02-202-4/+4
| | | | Fixes #25316.
* Fix warnings seen with warnings=all and recent GCC 8.2.marxin2019-02-181-1/+1
|
* Modules: Ensure classes match their header filenameRémi Verschelde2019-02-124-5/+6
| | | | | | | 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`
* Update docs and errors for WebSocket moduleFabio Alessandrelli2019-01-283-3/+10
|
* doc: Fix wrong references found by new makerst.pyRémi Verschelde2019-01-071-1/+1
| | | | Thanks @PJB3005
* Update copyright statements to 2019Rémi Verschelde2019-01-0126-52/+52
| | | | Happy new year to the wonderful Godot community!
* Fix missing/malformed license headersRémi Verschelde2019-01-0124-0/+24
|
* Fix HTML5 WebSocket client buffers size.Fabio Alessandrelli2018-12-261-2/+2
|
* doc: Add missing commas after "If true/false"Rémi Verschelde2018-12-201-1/+1
|
* Websocket LWS keep servicing till no CB are leftFabio Alessandrelli2018-11-251-5/+10
| | | | | | | | Apparently, only a single WRITABLE/READABLE callback is called at each servicing. For this reason, we want to keep servicing until we end up not receiving any callback. When that happens, we can assume that we can't (or don't want to) write more, and that there is nothing left to read in the socket buffer.
* Convert WebSocket module to use PacketBuffer classFabio Alessandrelli2018-11-1217-148/+163
|
* Add new PacketBuffer class for buffered peersFabio Alessandrelli2018-11-121-0/+122
|
* Merge pull request #23490 from Faless/lws_client_memfixRémi Verschelde2018-11-101-6/+7
|\ | | | | Fix access to freed mem in WS client after #23241
| * Fix access to freed mem in WS client after #23241Fabio Alessandrelli2018-11-031-6/+7
| | | | | | | | | | | | | | I was wrong in assuming that String had to survive long enough to avoid it, what actually needed to survive was the CharString obtained from the acsii() or utf8() function. At least according to valgrind
* | -Moved EditorDefaultValue to ClassDB, made it coreJuan Linietsky2018-11-081-1/+1
|/ | | | -Removed one and zero hints for properties, replaced by default value
* Add missing EMWSServer::poll function.Fabio Alessandrelli2018-10-231-0/+3
| | | | | Empty of course as server is not supported in HTML5, but the symbol must be defined.
* Remove unneeded strncpy in lws_client.Fabio Alessandrelli2018-10-231-19/+9
| | | | | Pass the String buffer directly, lws_client_connect_via_info will copy them for us.
* Fixing warnings generated by MSVCDualtagh Murray2018-10-192-1/+5
| | | | Fixes #22684.
* Fix LWSClient connect_to_host string termination.Fabio Alessandrelli2018-10-071-3/+6
| | | | | | | | Coming from strncpy might get you a non-NULL terminated buffer. The solution, if you accept trunction, is to give one less byte to strncpy and manually set the last char in the buffer to '\0'. If the source string is shorter, than the buffer is padded with '\0' automatically.
* Fix -Wunused-function in websocket moduleFabio Alessandrelli2018-09-292-121/+162
|
* SCons: Build thirdparty code in own env, disable warningsRémi Verschelde2018-09-281-18/+17
| | | | | Also remove unnecessary `Export('env')` in other SCsubs, Export should only be used when exporting *new* objects.
* Remove socket_helper.h after NetSocket refactorFabio Alessandrelli2018-09-281-5/+5
|
* Fix warnings about unused variables [-Wunused-variable]Rémi Verschelde2018-09-271-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes the following GCC 5 warnings: ``` drivers/gles2/rasterizer_scene_gles2.cpp:1139:15: warning: unused variable 'offset' [-Wunused-variable] drivers/gles2/rasterizer_scene_gles2.cpp:1205:39: warning: unused variable 'multi_mesh' [-Wunused-variable] drivers/gles2/rasterizer_storage_gles2.cpp:359:7: warning: unused variable 'srgb' [-Wunused-variable] drivers/gles2/shader_gles2.cpp:1016:45: warning: unused variable 'texture_hints' [-Wunused-variable] editor/animation_track_editor.cpp:776:9: warning: unused variable 'keys_to' [-Wunused-variable] editor/editor_inspector.cpp:273:7: warning: unused variable 'vs_height' [-Wunused-variable] editor/editor_themes.cpp:202:10: warning: unused variable 'begin_time' [-Wunused-variable] editor/editor_themes.cpp:239:10: warning: unused variable 'end_time' [-Wunused-variable] editor/plugins/animation_blend_tree_editor_plugin.cpp:726:17: warning: unused variable 'an' [-Wunused-variable] editor/plugins/script_text_editor.cpp:1278:8: warning: unused variable 'fold_state' [-Wunused-variable] main/main.cpp:132:13: warning: 'use_vsync' defined but not used [-Wunused-variable] modules/cvtt/image_compress_cvtt.cpp:231:8: warning: unused variable 'y_end' [-Wunused-variable] modules/cvtt/image_compress_cvtt.cpp:311:6: warning: unused variable 'shift' [-Wunused-variable] modules/gdscript/gdscript_editor.cpp:58:7: warning: unused variable 'th' [-Wunused-variable] modules/gridmap/grid_map.cpp:1084:6: warning: unused variable 'ofs' [-Wunused-variable] modules/theora/video_stream_theora.cpp:442:9: warning: unused variable 'tr' [-Wunused-variable] modules/visual_script/visual_script_editor.cpp:2606:6: warning: unused variable 'count' [-Wunused-variable] modules/visual_script/visual_script_editor.cpp:2829:6: warning: unused variable 'seq_count' [-Wunused-variable] modules/visual_script/visual_script_editor.cpp:2844:24: warning: unused variable 'vnode_function' [-Wunused-variable] modules/websocket/lws_peer.cpp:122:12: warning: unused variable 'peer_data' [-Wunused-variable] modules/websocket/lws_peer.cpp:135:12: warning: unused variable 'peer_data' [-Wunused-variable] modules/websocket/lws_peer.cpp:63:12: warning: unused variable 'peer_data' [-Wunused-variable] modules/websocket/lws_peer.cpp:91:12: warning: unused variable 'peer_data' [-Wunused-variable] platform/android/export/export.cpp:763:16: warning: unused variable 'node_size' [-Wunused-variable] scene/gui/rich_text_label.cpp:850:10: warning: unused variable 'x_ofs' [-Wunused-variable] scene/gui/text_edit.cpp:653:8: warning: unused variable 'tab_w' [-Wunused-variable] scene/resources/bit_mask.cpp:186:6: warning: unused variable 'i' [-Wunused-variable] scene/resources/mesh.cpp:549:20: warning: '_array_name' defined but not used [-Wunused-variable] servers/audio/audio_rb_resampler.cpp:107:10: warning: unused variable 'v2' [-Wunused-variable] servers/audio/audio_rb_resampler.cpp:108:10: warning: unused variable 'v3' [-Wunused-variable] servers/audio/audio_rb_resampler.cpp:109:10: warning: unused variable 'v4' [-Wunused-variable] servers/audio/audio_rb_resampler.cpp:110:10: warning: unused variable 'v5' [-Wunused-variable] servers/audio/audio_rb_resampler.cpp:111:10: warning: unused variable 'v0n' [-Wunused-variable] servers/audio/audio_rb_resampler.cpp:112:10: warning: unused variable 'v1n' [-Wunused-variable] servers/audio/audio_rb_resampler.cpp:113:10: warning: unused variable 'v2n' [-Wunused-variable] servers/audio/audio_rb_resampler.cpp:114:10: warning: unused variable 'v3n' [-Wunused-variable] servers/audio/audio_rb_resampler.cpp:115:10: warning: unused variable 'v4n' [-Wunused-variable] servers/audio/audio_rb_resampler.cpp:116:10: warning: unused variable 'v5n' [-Wunused-variable] servers/visual/default_mouse_cursor.xpm:2:21: warning: 'default_mouse_cursor_xpm' defined but not used [-Wunused-variable] ```
* Update WebSocket documentationFabio Alessandrelli2018-09-243-6/+44
|
* Implement WebSocket clean close detection.Fabio Alessandrelli2018-09-2410-13/+20
|
* Implement WebSocket close notify.Fabio Alessandrelli2018-09-2418-29/+115
|
* Merge pull request #21982 from luzpaz/misc-typosRémi Verschelde2018-09-131-1/+1
|\ | | | | Misc. typos
| * Misc. typosluz.paz2018-09-121-1/+1
| | | | | | Found via `codespell -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"`
* | Make core/ includes absolute, remove subfolders from include pathRémi Verschelde2018-09-121-1/+1
|/ | | | | | This allows more consistency in the manner we include core headers, where previously there would be a mix of absolute, relative and include path-dependent includes.
* Allow WebSocket connect with no sub-protocols.Fabio Alessandrelli2018-08-304-43/+40
|
* Merge pull request #20913 from pulkomandy/masterRémi Verschelde2018-08-131-82/+83
|\ | | | | Rebase patches for fixing haiku build.
| * Rebase patches for fixing haiku build.Adrien Destugues2018-08-111-82/+83
| |
* | Fix WebSocket crash due to non PDO init.Fabio Alessandrelli2018-08-064-55/+47
|/ | | | Move RingBuffer (and few related vars) to LWSPeer.
* Removed unnecessary assignmentsWilson E. Alvarez2018-07-241-1/+0
|
* Style: Format code with clang-format 6.0.1Rémi Verschelde2018-07-181-1/+1
|
* Sanitize protocol struct, def LWS T/RX buffer sizeFabio Alessandrelli2018-06-231-2/+8
|
* Bump libwebsockets to version 3.0.0Fabio Alessandrelli2018-06-072-35/+46
|
* Thirdparty: Fill copyright for lws, miniupnpc, clipperRémi Verschelde2018-06-071-2/+2
| | | | | | Rename `lws` to `libwebsockets` which is its library name. Add missing license file for mbedtls.
* Fix LWSPeer get_connected_[host/port]Fabio Alessandrelli2018-06-061-2/+2
|
* SCons: Pass env to modules can_build methodRémi Verschelde2018-05-301-3/+1
| | | | | | This allows to disable modules based on the environment, in particular `env[tools]` which tells us if we are building the editor or not.
* Document websocket module, further document enetFabio Alessandrelli2018-05-086-3/+303
|
* Various coverity scan fixes for networkingFabio Alessandrelli2018-04-211-2/+7
| | | | Fix FreeBSD websocket compilation error
* Implement get_peer_[address|port] in ENet/WSServerFabio Alessandrelli2018-04-129-4/+87
| | | | | | | Also implement get_connected_host and get_connected_port in WebSocketPeer (not supported in HTML5 due to browser limitation). Add shorthand disconnect_peer(id) for get_peer(id)->close() like in ENet to WebSocketServer.
* Websocket client SSL supportFabio Alessandrelli2018-04-033-1/+39
|
* s/2017/2018/g for gles2, websocket, linux appdataPoommetee Ketson2018-03-2124-48/+48
|
* Remove unneeded and problematic minilex.c from lws.Fabio Alessandrelli2018-03-011-1/+0
| | | | We don't need it, it's used upstream to test the lexical parser
* Use Prepend instead of Append for mbedTLS includeFabio Alessandrelli2018-02-281-2/+2
| | | | Fixes build on FreeBSD when system-wide mbedTLS and/or openSSL are installed
* Fix typos with codespellluz.paz2018-02-211-1/+1
| | | | | | | | | | | | | | Found via `codespell -q 3 --skip="./thirdparty,./editor/translations" -I ../godot-word-whitelist.txt` Whitelist consists of: ``` ang doubleclick lod nd que te unselect ```