aboutsummaryrefslogtreecommitdiff
path: root/core/string_db.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-03-22Use default UDP ring buffer size of 65536 for clientsFabio Alessandrelli2-4/+4
We should probably create a specific function for setting the recv buffer anyway. UDP sockets does not need to bind (listen) to be able to call recvfrom. This is especially useful for clients who just call set_send_address and start communicating with a server. (cherry picked from commit 93368571326e3472522669b76998f58aed78864f)
2017-03-22Fix bug causing UDP socket to close after the first send if not listeningFabio Alessandrelli2-0/+2
The ring buffer for receiving packets was not resized in constructor (cherry picked from commit 68dc969f8ca242d0c4f927a417557288e4b1b75f)
2017-03-22Update docs reference for TCP_Server::listen and UDPPacketPeer::listenFabio Alessandrelli1-4/+12
(cherry picked from commit e5e4e7b6a9be36bb9bf75da996c348ae2476010c)
2017-03-22Avoid deadlock when writing/reading data on a connecting TCP socketFabio Alessandrelli4-20/+10
TCP status polling is always performed as non blocking. Trying to put a packet on a connecting socket will fail immediately. (cherry picked from commit fa0cb7da0e096e01476eabef37c225404c7f6f26)
2017-03-22Bind to IPv4 on OpenBSD when using wildcardFabio Alessandrelli2-0/+8
OpenBSD does not support binding on both IPv4 and IPv6 using the same socket (cherry picked from commit 619e7a2c8ba19d0dc45467e29d9d9aa8b3506ac8)
2017-03-22Remove set_ip_type from network classes (no longer needed)Fabio Alessandrelli18-65/+13
- TCP: - `listen` bind to wildcard "*" -> dual stack socket - `listen` bind to address -> socket from address type - `connect` -> resolve using best protocol (UNSPEC), socket from address type - UDP: - `listen` bind to wildcard "*" -> dual stack socket - `listen` bind to address -> socket from address type - `put_packet`/`put_var` -> resolve using TYPE_ANY (UNSPEC), socket from address type (to change socket type you must first call `close` it) (cherry picked from commit 88a56ba783d36d52a1023759e69f026b1ae255b4)
2017-03-22Implement UDP listen bind addressFabio Alessandrelli6-15/+47
(cherry picked from commit 2fe4ef66991b483640f59873c22b3af671626ccc)
2017-03-22Implement TCP Server bind addressFabio Alessandrelli9-29/+49
(cherry picked from commit b2839343cab66880f647c77da7b2e1826761776a)
2017-03-22IP_Address can now be a wildcard (not a valid IP, used for binding)Fabio Alessandrelli2-1/+10
(cherry picked from commit 4198291cd45da7fce278d21cd5ef4a506086d5f8)
2017-03-22Convert validity checks of IP_Address to is_valid method.Fabio Alessandrelli9-11/+30
(cherry picked from commit 98a7e2b4e09791705cd9dfd4d13611bc02fe47d4)
2017-03-22Avoid calling close when polling a UDP peer without socketFabio Alessandrelli2-0/+8
(cherry picked from commit e4b9b37ccf8495be674bc15cf0bf9d76fe94e6be)
2017-03-22TCP connect always opens correct socket typeFabio Alessandrelli4-8/+17
TCP client connections does not need to rely on ipv6 dual stack sockets (cherry picked from commit 55b4f3686d8f51958132a1a1745cc4e128fd118d)
2017-03-21Fix random crashes when using yield()Pedro J. Estébanez1-1/+1
2017-03-20Fix Particles2D process mode back-compat issuePedro J. Estébanez1-0/+3
2017-03-20Revert "Fix drag and drop on 2d viewport"Rémi Verschelde1-15/+15
This reverts commits a9d8da91b72fe8493f9087563056bb4ade4ca2c7 and 4230b22558516473fe2b11f05436fab13269789c.
2017-03-19Travis: Run clang-format static checkRémi Verschelde2-1/+53
Commits or PRs that do not respect the clang-format style that we enforce will fail the test. Adding ubuntu-toolchain-r-test as its libstdc++ is necessary to install libllvm-3.9. (cherry picked from commit 6aee289b3efea1d4f44fbcaa7d97ce276d17214e)
2017-03-19Fix linking order for builtin freetypeRémi Verschelde1-18/+14
Before this change the libfreetype_builtin.a lib would be appended at the very end of the linking flags, after system libs such as -lX11 or -lkernel32. (cherry picked from commit 26c6c2b01a7507038f051bcdde9fcb41c7cc4d1f)
2017-03-19Fix cherry-pick mistake using 3.0 methodRémi Verschelde1-1/+1
Bug introduced in a9d8da91b72fe8493f9087563056bb4ade4ca2c7.
2017-03-19Input: bind parse_input_event()Andreas Haas3-1/+5
When using get_tree().input_event(ev), the engine will JUST send the event down the SceneTree. However, you won't get any of the benefits of the Input singleton: - No InputMap actions will be emitted - The internal input state won't be modified, so methods like `Input.get_mouse_pos()` or `Input.is_joy_button_pressed` won't return the expected output after sending the event. This is fixed by using `Input.parse_input_event(ev)` instead. I guess we'll also have to update the docs to reflect that this is the preferred method of sending custom InputEvents.
2017-03-19X11: Don't reset mouse cursor theme.Andreas Haas1-2/+1
On KDE (and possibly others) the "default" cursor theme is actually some system default, not the one you've set in the desktop setting. This was especially annoying when using a white cursor, as Godot would then reset back to a dark one. In my case it was also keeping the cursor from changing its shape. (cherry picked from commit fc84ccc468e14dd8cd317c29424011d76ec85dd5)
2017-03-19android: adding classpath and gradle pluginsRamesh Mani Maran4-1/+21
(cherry picked from commit 27c7d253aa1f2125e37344d7829b5b87a4b9a901)
2017-03-19Editor: Fix "About" dialogAndreas Haas1-6/+5
Use a HBoxContainer instead of hardcoded positions. (cherry picked from commit 7ec697695f9a12cbc2338725d887e752022e30f4)
2017-03-19Fixed typo in gdscript autocompletion.mbalint121-1/+1
There was a missing '!' sign, but autocompletion shows parent script members too. (cherry picked from commit edaf77abd614d1260c6827f25045cc0473a08117)
2017-03-19Update mouse position on touch and release events (Android)denis1-0/+2
(cherry picked from commit 55835167a4bf88d67b1c5d80bda606a57b919555)
2017-03-19List Control::has_point as a virtual methodCrazyGuy1082-0/+10
According to Issue #8018, a BIND_VMETHOD macro wasn't present in scene/gui/control.cpp, while it was declared to be a virtual method in scene/gui/control.h. classes.xml was updated to also list this method in Control. (cherry picked from commit 9589936d6e59fe370297867548f65cb356172120)
2017-03-19Fix drag and drop on 2d viewportvolzhs1-16/+16
(cherry picked from commit 4d0a75750fdb8d1cd150976cdbd6c3d1c7ab513b)
2017-03-19fix remove_and_skip()AlexHolly1-7/+8
(cherry picked from commit 3f78f1f17db3b80279bd9c4a177913ea36aa130d)
2017-03-19Fix connection errors when replacing nodeIgnacio Etcheverry1-2/+5
- Avoid connecting the signals to nonexistent methods - Preserve only persistent connections (cherry picked from commit d210ac66ef8bbe056c014ba90fd2a12611b51648)
2017-03-19Bring that Whole New World to the Old Continent tooRémi Verschelde1308-173543/+146940
Applies the clang-format style to the 2.1 branch as done for master in 5dbf1809c6e3e905b94b8764e99491e608122261.
2017-03-19Prevent cyclical dependency issue after clang-format includes reorderRémi Verschelde1-1/+3
2017-03-19Add missing map.h include in color defsRémi Verschelde1-0/+2
(cherry picked from commit 5e13a762ecbdfe6a643977b74c790d479a0636e2)
2017-03-18Prevent MSVC build issue after clang-format includes reorderRémi Verschelde1-2/+3
2017-03-18Refactoring: rename tools/editor/ to editor/Rémi Verschelde1759-31301/+31301
The other subfolders of tools/ had already been moved to either editor/, misc/ or thirdparty/, so the hiding the editor code that deep was no longer meaningful. (Manual redo of 49c065d29ca07040c3fd810026121164ad86b247)
2017-03-18clang-format: Add pre-commit hookRémi Verschelde4-0/+258
Derived from https://github.com/githubbrowser/Pre-commit-hooks and https://gitlab.cern.ch/GeantV/geant/blob/master/hooks/pre-commit-clang-format (cherry picked from commit 0e4ee5935a000f5d6de63d3c8ad15e1baf80cd0e)