summaryrefslogtreecommitdiff
path: root/drivers/unix
AgeCommit message (Collapse)Author
2017-03-06Fix build issue with MSVCRémi Verschelde
windows.h is a mess.
2017-03-05A Whole New World (clang-format edition)Rémi Verschelde
I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
2017-03-05Add a bunch of missing Godot headers in own filesRémi Verschelde
2017-02-21-renamed globals.h to global_config.cpp (this seems to have caused a few ↵Juan Linietsky
modified files) -.pck and .zip exporting redone, seems to be working..
2017-02-12Merge pull request #7581 from Faless/v6_wild_bindRémi Verschelde
TCP/UDP listen bind to address and bugfixes
2017-02-09Add a simple signal handler for SIGCHLD on UnixHein-Pieter van Braam
This fixes #6631
2017-02-06Several bugfixes, improving the import workflowJuan Linietsky
2017-01-23Fix buffer size check in UDP socket.Fabio Alessandrelli
We were reserving 12 bytes from the buffer for ip, port, and length, but since IPv6 introduction we should be reserving 24 (IPv6 are 16 bytes)
2017-01-23Use default UDP ring buffer size of 65536 for clientsFabio Alessandrelli
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.
2017-01-23Fix bug causing UDP socket to close after the first send if not listeningFabio Alessandrelli
The ring buffer for receiving packets was not resized in constructor
2017-01-23Avoid deadlock when writing/reading data on a connecting TCP socketFabio Alessandrelli
TCP status polling is always performed as non blocking. Trying to put a packet on a connecting socket will fail immediately.
2017-01-23Bind to IPv4 on OpenBSD when using wildcardFabio Alessandrelli
OpenBSD does not support binding on both IPv4 and IPv6 using the same socket
2017-01-23Remove set_ip_type from network classes (no longer needed)Fabio Alessandrelli
- 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)
2017-01-23Implement UDP listen bind addressFabio Alessandrelli
2017-01-23Implement TCP Server bind addressFabio Alessandrelli
2017-01-23Convert validity checks of IP_Address to is_valid method.Fabio Alessandrelli
2017-01-23Avoid calling close when polling a UDP peer without socketFabio Alessandrelli
2017-01-15Merge pull request #7510 from Faless/tcp_connectRémi Verschelde
TCP connect always opens the correct socket type
2017-01-14StreamPeerWinsock: Fix changed declarationsRémi Verschelde
Bug introduced in dcb95ec1473eff3f455909cd81c3cd50b1e1159b.
2017-01-14removed duplicated functions in class hierarchy that were bound more than onceJuan Linietsky
added a check to detect this case in the future
2017-01-14Style: Fix whole-line commented codeRémi Verschelde
They do not play well with clang-format which aligns the `//` part with the rest of the code block, thus producing badly indented commented code.
2017-01-14Fixed dir access return value, changed it to Error like all other funcsJuan Linietsky
2017-01-14UDP.set_send_address to UDP.set_dest_addressJuan Linietsky
2017-01-13TCP connect always opens correct socket typeFabio Alessandrelli
TCP client connections does not need to rely on ipv6 dual stack sockets
2017-01-12Improvements to scons defined WINVER/_WIN32_WINNTFabio Alessandrelli
2017-01-09Windows: Workaround missing includes in MinGW-w64 < 4Rémi Verschelde
The MinGW-w64 version we have on our Travis build environment (Ubuntu 12.04, mingw-w64 2.0.1, gcc 4.6) is old and has some missing includes in the dependencies of the `tcpmib.h` header [0] [1] [2]. Those were not triggered before 6323779596dea0db7f58afef7d3d3d5588ef20cb probably due to conflicting WINVER definitions which prevented triggering the code specific to >= 0x0600 (Vista). We ensure it won't be triggered by defining the _WIN32_WINNT macro to Windows XP compatibility.
2017-01-08Windows: Define _WIN32_WINRT to 0x0600 (Vista)Rémi Verschelde
Passed as a compiler define to be sure it is always define before windows.h is loaded. This means that Godot officially requires Vista API or later, it will not work on Windows XP or earlier. Also fix a bogus check for Windows 7 API.
2017-01-08Use more compatible initializarion of RWLockPosixJuan Linietsky
2017-01-07Memory pool vectors (DVector) have been enormously simplified in code, and ↵Juan Linietsky
renamed to PoolVector
2017-01-06-Changed memory functions, Memory::alloc_static*, simplified them, made them ↵Juan Linietsky
aligned to 16 -Changed Vector<> template to fit this.
2017-01-05-Changed most project settings in the engine, so they have major and minor ↵Juan Linietsky
categories. -Changed SectionedPropertyEditor to support this -Renamed Globals singleton to GlobalConfig, makes more sense. -Changed the logic behind persisten global settings, instead of the persist checkbox, a revert button is now available
2017-01-02ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to ↵Juan Linietsky
Variant. All usages of "type" to refer to classes were renamed to "class" ClassDB has been exposed to GDScript. OBJ_TYPE() macro is now GDCLASS()
2017-01-02Merge remote-tracking branch 'origin/gles3' into gles3-on-masterRémi Verschelde
Various merge conflicts have been fixed manually and some mistakes might have been made - time will tell :)
2017-01-02Merge pull request #7271 from Faless/ipv6_cleanupRémi Verschelde
Fixes and improvementes for IPv6 implementation.
2017-01-01Welcome in 2017, dear changelog reader!Rémi Verschelde
That year should bring the long-awaited OpenGL ES 3.0 compatible renderer with state-of-the-art rendering techniques tuned to work as low as middle end handheld devices - without compromising with the possibilities given for higher end desktop games of course. Great times ahead for the Godot community and the gamers that will play our games!
2016-12-09Remove old unused AI_V4MAPPED flag to getaddrinfoFabio Alessandrelli
2016-12-09IP_Address now handle IPv4 and IPv6 transparentlyFabio Alessandrelli
IP_Address changes: - Converts to and from String transparently while handling IPv4 as IPv6 mapped (::ffff:[IP]) address internally. - Completely remove AddrType enum. - Setting/Getting of ip array is now only possible through dedicated functions (ie. set_ipv4, get_ipv4, set_ipv6, get_ipv6) - Add function to know if the address is a valid IPv4 (for IP implementation and enet)
2016-12-09Migrate int.IP_TYPE_ constants to IP.TYPE_Fabio Alessandrelli
2016-12-09Move V6ONLY flag selection inside helpersFabio Alessandrelli
2016-12-09Automatically map IPv4 address to IPv6 when neededFabio Alessandrelli
2016-12-09Use an instance variable for ip_type in raw socketsFabio Alessandrelli
PacketPeerUDP/StreamPeerTCP/TCP_Server now uses an instance variable to store the selected ip_type (IPv4/IPv6/ANY, where ANY = dual stack). All calls to resolve addresses, sending/receving data, connecting/listening will use that socket type.
2016-12-09Fix getaddrinfo failing on androidFabio Alessandrelli
2016-12-09Properly handle tcp connection failureFabio Alessandrelli
2016-12-09Fix _set_ip_addr_port not setting the address.Fabio Alessandrelli
2016-11-30OS additions and fixes for WebAssembly/asm.jseska
- Implement alert, shell_open, set_window_title - Add locale lookup, fixes #2477 - Print without color control sequences - Move get_executable_path implementation to OS_JavaScript
2016-11-03Rename WINRT_ENABLED to UWP_ENABLEDGeorge Marques
2016-11-01Merge pull request #7006 from vnen/fix-ipv6-uwpGeorge Marques
Fix IPv6 linking for UWP
2016-10-31Fix IPv6 linking for UWPGeorge Marques
2016-11-01style: Fix PEP8 whitespace issues in Python filesRémi Verschelde
Done with `autopep8 --select=E2,W2`, fixes: - E201 - Remove extraneous whitespace. - E202 - Remove extraneous whitespace. - E203 - Remove extraneous whitespace. - E211 - Remove extraneous whitespace. - E221 - Fix extraneous whitespace around keywords. - E222 - Fix extraneous whitespace around keywords. - E223 - Fix extraneous whitespace around keywords. - E224 - Remove extraneous whitespace around operator. - E225 - Fix missing whitespace around operator. - E226 - Fix missing whitespace around operator. - E227 - Fix missing whitespace around operator. - E228 - Fix missing whitespace around operator. - E231 - Add missing whitespace. - E231 - Fix various deprecated code (via lib2to3). - E241 - Fix extraneous whitespace around keywords. - E242 - Remove extraneous whitespace around operator. - E251 - Remove whitespace around parameter '=' sign. - E261 - Fix spacing after comment hash. - E262 - Fix spacing after comment hash. - E265 - Format block comments. - E271 - Fix extraneous whitespace around keywords. - E272 - Fix extraneous whitespace around keywords. - E273 - Fix extraneous whitespace around keywords. - E274 - Fix extraneous whitespace around keywords. - W291 - Remove trailing whitespace. - W293 - Remove trailing whitespace.
2016-10-30Define IPV6_V6ONLY flag if not defined on windows (old mingw versions)Fabio Alessandrelli