summaryrefslogtreecommitdiffstats
path: root/drivers/unix
Commit message (Collapse)AuthorAgeFilesLines
* BuildSystem: generated files have .gen.extensionPoommetee Ketson2017-06-251-1/+1
|
* Fix local ip addresses (interfaces) detection.Fabio Alessandrelli2017-05-081-4/+11
| | | | Ignore non-IP addresses for both windows and unix
* Socket helpers now fall back to ipv4 on systems where ipv6 is disabled.Fabio Alessandrelli2017-05-081-1/+9
|
* Fix UDP wait() not returning after first received packetFabio Alessandrelli2017-05-051-0/+2
|
* Rename [gs]et_pos to [gs]et_position for ControlsSergey Pusnei2017-04-101-1/+1
| | | | | | | | Control set_pos -> set_position Control set_global_pos -> set_global_position [gs]et_mouse_pos -> [gs]et_mouse_position [gs]et_global_mouse_pos -> [gs]et_global_mouse_position fixes #8005
* Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-0823-0/+23
|
* [DLScript] fixed android builds nowKarroffel2017-04-061-1/+1
| | | | ... really.
* added dlscript moduleKarroffel2017-04-031-3/+3
| | | | | | | | | This module was written by bojidar-bg and me, with the help of ClikCode and touilleMan. This adds a module to Godot that enables the use of dynamic libraries as a source for scripts. That also allows third party libraries to be linked to Godot more easily and without creating modules. For a readme see https://github.com/GodotNativeTools/godot_headers/blob/master/README.md
* increased maximum number of scripting languagesKarroffel2017-04-031-8/+9
|
* Added methods for opening dynamic libraries to OSKarroffel2017-03-292-0/+34
|
* Allow non blocking UDP put_packet in C++.Fabio Alessandrelli2017-03-242-1/+37
| | | | | | - Add blocking mode option to PacketPeerUDP. - put_packet returns ERR_UNAVAILABLE when operation would block. - ENet module uses non-blocking UDP.
* Fix build issue with MSVCRémi Verschelde2017-03-061-1/+2
| | | | windows.h is a mess.
* A Whole New World (clang-format edition)Rémi Verschelde2017-03-0523-702/+570
| | | | | | | | | | | | | | | | | | | | | | | | 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
* Add a bunch of missing Godot headers in own filesRémi Verschelde2017-03-055-4/+86
|
* -renamed globals.h to global_config.cpp (this seems to have caused a few ↵Juan Linietsky2017-02-211-1/+1
| | | | | | modified files) -.pck and .zip exporting redone, seems to be working..
* Merge pull request #7581 from Faless/v6_wild_bindRémi Verschelde2017-02-127-38/+75
|\ | | | | TCP/UDP listen bind to address and bugfixes
| * Fix buffer size check in UDP socket.Fabio Alessandrelli2017-01-231-1/+1
| | | | | | | | | | 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)
| * Use default UDP ring buffer size of 65536 for clientsFabio Alessandrelli2017-01-231-2/+2
| | | | | | | | | | | | | | 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.
| * Fix bug causing UDP socket to close after the first send if not listeningFabio Alessandrelli2017-01-231-0/+1
| | | | | | | | The ring buffer for receiving packets was not resized in constructor
| * Avoid deadlock when writing/reading data on a connecting TCP socketFabio Alessandrelli2017-01-232-10/+5
| | | | | | | | | | TCP status polling is always performed as non blocking. Trying to put a packet on a connecting socket will fail immediately.
| * Bind to IPv4 on OpenBSD when using wildcardFabio Alessandrelli2017-01-232-0/+8
| | | | | | | | OpenBSD does not support binding on both IPv4 and IPv6 using the same socket
| * Remove set_ip_type from network classes (no longer needed)Fabio Alessandrelli2017-01-234-9/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | - 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)
| * Implement UDP listen bind addressFabio Alessandrelli2017-01-232-6/+21
| |
| * Implement TCP Server bind addressFabio Alessandrelli2017-01-234-11/+29
| |
| * Convert validity checks of IP_Address to is_valid method.Fabio Alessandrelli2017-01-233-3/+3
| |
| * Avoid calling close when polling a UDP peer without socketFabio Alessandrelli2017-01-231-0/+4
| |
* | Add a simple signal handler for SIGCHLD on UnixHein-Pieter van Braam2017-02-091-1/+15
| | | | | | | | This fixes #6631
* | Several bugfixes, improving the import workflowJuan Linietsky2017-02-062-0/+10
|/
* Merge pull request #7510 from Faless/tcp_connectRémi Verschelde2017-01-152-5/+9
|\ | | | | TCP connect always opens the correct socket type
| * TCP connect always opens correct socket typeFabio Alessandrelli2017-01-132-5/+9
| | | | | | | | TCP client connections does not need to rely on ipv6 dual stack sockets
* | StreamPeerWinsock: Fix changed declarationsRémi Verschelde2017-01-141-2/+2
| | | | | | | | Bug introduced in dcb95ec1473eff3f455909cd81c3cd50b1e1159b.
* | removed duplicated functions in class hierarchy that were bound more than onceJuan Linietsky2017-01-142-15/+15
| | | | | | | | added a check to detect this case in the future
* | Style: Fix whole-line commented codeRémi Verschelde2017-01-141-1/+1
| | | | | | | | | | 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.
* | Fixed dir access return value, changed it to Error like all other funcsJuan Linietsky2017-01-142-4/+4
| |
* | UDP.set_send_address to UDP.set_dest_addressJuan Linietsky2017-01-142-2/+2
|/
* Improvements to scons defined WINVER/_WIN32_WINNTFabio Alessandrelli2017-01-122-13/+5
|
* Windows: Workaround missing includes in MinGW-w64 < 4Rémi Verschelde2017-01-091-1/+13
| | | | | | | | | 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.
* Windows: Define _WIN32_WINRT to 0x0600 (Vista)Rémi Verschelde2017-01-081-9/+3
| | | | | | | | 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.
* Use more compatible initializarion of RWLockPosixJuan Linietsky2017-01-081-1/+2
|
* Memory pool vectors (DVector) have been enormously simplified in code, and ↵Juan Linietsky2017-01-073-5/+115
| | | | renamed to PoolVector
* -Changed memory functions, Memory::alloc_static*, simplified them, made them ↵Juan Linietsky2017-01-063-518/+1
| | | | | | aligned to 16 -Changed Vector<> template to fit this.
* -Changed most project settings in the engine, so they have major and minor ↵Juan Linietsky2017-01-051-2/+2
| | | | | | | | 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
* ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to ↵Juan Linietsky2017-01-021-1/+1
| | | | | | | | 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()
* Merge remote-tracking branch 'origin/gles3' into gles3-on-masterRémi Verschelde2017-01-021-0/+4
|\ | | | | | | | | Various merge conflicts have been fixed manually and some mistakes might have been made - time will tell :)
| * 2D Shaders are working again using the new syntax, though all is buggy in ↵Juan Linietsky2016-10-101-0/+4
| | | | | | | | general
* | Merge pull request #7271 from Faless/ipv6_cleanupRémi Verschelde2017-01-029-84/+79
|\ \ | | | | | | Fixes and improvementes for IPv6 implementation.
| * | Remove old unused AI_V4MAPPED flag to getaddrinfoFabio Alessandrelli2016-12-091-8/+0
| | |
| * | IP_Address now handle IPv4 and IPv6 transparentlyFabio Alessandrelli2016-12-094-38/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
| * | Migrate int.IP_TYPE_ constants to IP.TYPE_Fabio Alessandrelli2016-12-097-18/+18
| | |
| * | Move V6ONLY flag selection inside helpersFabio Alessandrelli2016-12-093-19/+4
| | |