Fabio Alessandrelli
e8a6cbc897
Migrate int.IP_TYPE_ constants to IP.TYPE_
...
(cherry picked from commit c18c5013f8
)
2017-01-04 00:46:32 +01:00
Fabio Alessandrelli
47ae6c6507
Move V6ONLY flag selection inside helpers
...
(cherry picked from commit 4d90a4fcd5
)
2017-01-04 00:46:32 +01:00
Fabio Alessandrelli
5e79ac72b7
Automatically map IPv4 address to IPv6 when needed
...
(cherry picked from commit 9200da58e4
)
2017-01-04 00:46:32 +01:00
Fabio Alessandrelli
a46a643f90
Use an instance variable for ip_type in raw sockets
...
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.
(cherry picked from commit 95bdd97768
)
2017-01-04 00:46:32 +01:00
Fabio Alessandrelli
c030e602e5
Properly handle tcp connection failure
...
(cherry picked from commit 4f07b595a1
)
2017-01-04 00:46:32 +01:00
Fabio Alessandrelli
19b31297ec
Fix _set_ip_addr_port not setting the address.
...
(cherry picked from commit cdc1ca0f13
)
2017-01-04 00:46:32 +01:00
Fabio Alessandrelli
4635671de5
Fix getaddrinfo failing on android
...
(cherry picked from commit 311f1f165b
)
2017-01-04 00:46:32 +01:00
Fabio Alessandrelli
e1dfaaf786
Define IPV6_V6ONLY flag if not defined on windows (old mingw versions)
...
(cherry picked from commit bdc7ca84ca
)
2016-12-11 18:12:46 +01:00
Fabio Alessandrelli
754e9aa60a
TCP/UDP Listen sockets can now be set to IPv6 only
...
(cherry picked from commit eb27e993f0
)
2016-12-11 18:12:46 +01:00
Fabio Alessandrelli
70a6791150
Fix windows debugger connection problems.
...
Unify network socket creation between platform.
Ensure IPV6_V6ONLY flag is not set on sockets (allow IPv4 connection in IPv6 socket, dual-stack).
(cherry picked from commit 812908e236
)
2016-12-11 18:12:45 +01:00
Fabio Alessandrelli
6e0de0cce8
TCPServer listen now default to IP type ANY (v6 socket with v4 support)
...
(cherry picked from commit ee69bd81cf
)
2016-12-11 18:12:45 +01:00
Fabio Alessandrelli
04def2161e
Fix PacketPeerUDP get_packet_port()
...
Properly convert port field from network to system ordering on incoming packets.
(cherry picked from commit 25e29972a9
)
2016-12-11 18:12:45 +01:00
Fabio Alessandrelli
b3443fd848
Pass correct address size (ipv4,ipv6) to socket connect, bind, sendto
...
The address size passed to network system calls now reflects the the actual IP type (v4 or v6).
Fix Windows and OSX ipv6 sockets
(cherry picked from commit 80e911647c
)
2016-12-11 12:35:06 +01:00
Ariel Manzur
d8b0070b8c
added windows support for ipv6, cleaned up unix code
...
(cherry picked from commit 672225b710
)
2016-12-11 12:35:06 +01:00
Ariel Manzur
53fea7f196
fixed some byte order and parsing problems
...
(cherry picked from commit 1d45f35a4a
)
2016-12-11 12:35:06 +01:00
Ariel Manzur
fd1022fd29
adding ipv6
...
(cherry picked from commit 887a897c02
)
2016-12-11 12:35:06 +01:00
eska
6d86a63648
OS additions and fixes for WebAssembly/asm.js
...
- 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-12-03 15:33:32 +01:00
Rémi Verschelde
e259bf8bbb
style: Fix PEP8 whitespace issues in Python files
...
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-11-02 22:28:28 +01:00
Rémi Verschelde
5a49e45d21
SCsub: Add python shebang as a hint for syntax highlighting
...
Also switch existing shebangs to "better" /usr/bin/env python.
(cherry picked from commit fc8ccd5b8c
)
2016-10-30 14:51:34 +01:00
Rémi Verschelde
aa1367595e
drivers: Refactor SCsub and drop redundant env_drivers clone
...
The reordering of the SConscript includes allows to ensure that
stuff like the builtin zlib headers will be available for libpng.
Also moved glew back into global env, otherwise windows seems
not to find it... Kind of shooting in the dark with this multi-env
setup.
(cherry picked from commit 248bc9159c
)
2016-10-30 14:51:34 +01:00
Rémi Verschelde
22419082d9
Remove some noisy debug prints
...
Part of #5031
2016-07-17 18:25:21 +02:00
Juan Linietsky
f9bd038ca7
Removed no longer needed check
2016-07-02 13:32:07 -03:00
Juan Linietsky
ffbc2e56c9
Fix some bugs in diraccess, closes #5288
2016-06-30 18:23:39 -03:00
Juan Linietsky
8dac3bf3b1
Added function to notify ScriptLanguage when a thread is created/freed, allows scripts to allocate a stack there via TLS
2016-06-25 10:41:23 -03:00
Daniel J. Ramirez
422fac5066
Removed lots of prints
2016-06-18 18:01:06 -05:00
Juan Linietsky
e3905a084e
-made get_space_left() return values more homogenous, also for script, converted to mb, closes #4617
2016-06-18 11:32:45 -03:00
Juan Linietsky
61655d6dc2
Fixed make_dir and make_dir_recursive erros, closes #1680 closes #1872
2016-06-18 11:13:03 -03:00
Rémi Verschelde
a7fc04626a
Add missing license headers in our source files ( #5255 )
...
Also removes a couple wrong Godot headers from third-party source files.
2016-06-18 14:46:12 +02:00
Juan Linietsky
7f02627290
-Add visible IO errors when closing a file fails due to it being locked (most likely on windows), closes #4760
2016-06-13 10:10:50 -03:00
volzhs
9073dc9963
change invalid characters when get user data dir on Windows & Unix
...
Can't create user data folder when project name has ``\ / : * ? " < > |`` characters on OS_Windows & OS_Unix.
So, change it to ``-`` to be able to make folder.
fixes #4928 and it's altanative to #4986 .
2016-06-03 03:39:37 +09:00
Aren Villanueva
e5c1a2c3f7
Implements get_executable_path for OS X should proc_pidpath in os_osx.mm doesn't succeed. Silences the warning for javascript as the function currently appears superfluous.
2016-04-20 17:49:48 +10:00
Kyle Luce
674c6f2f2d
Add function to convert Date time from a dictionary to Epoch
...
- Also changed get_time_from_unix_time to get_date_time_from_unix_time to be
consistent.
Ticket:
https://github.com/godotengine/godot/issues/4038
2016-03-16 23:13:39 -07:00
Kyle Luce
feef563f3f
Fixes the month consistency issue in enums and get_date etc
...
- Also updated the docs to reflect this.
- Added some vim temp files to gitignore
- Changed NaCL to be consistent with the other OS_Unix::get_date implementation
(added 1 to month to map to 1-12)
Ticket:
https://github.com/godotengine/godot/issues/4025
2016-03-13 15:27:39 -07:00
Zher Huei Lee
d7052ddba3
Added relative paths for DirAccess::remove()
...
Follows similar behaviour to DirAccess::rename()
2016-03-01 10:40:31 +00:00
est31
fb1e52f4d8
Fix allocation bug if compiled with modern clang or gcc
...
* Add overflow checked intrinsic abstractions that check on overflow.
* Use them for memory allocation code.
* Use size_t type for memory allocation code to support full platform dependent width.
Fixes #3756 .
2016-02-19 07:58:42 +01:00
Ariel Manzur
0cd8c054a2
thread renaming
2016-01-31 20:23:24 -03:00
Ariel Manzur
b406aae790
total pointers
2016-01-31 20:23:24 -03:00
Juan Linietsky
c633a29a39
improve reporting of error in wrong inheritance for autoload script
2016-01-13 09:42:03 -03:00
Rémi Verschelde
7f82c8d7c5
Merge pull request #3230 from touilleMan/issue-55
...
Remove unnecessary null pointer checks
2016-01-11 12:00:44 +01:00
Juan Linietsky
a120c66f98
-Removed OS.get_system_time_msec(), this is undoable on Windows and also unusable from GDscript due to precision.
...
-Added, instead an OS.get_system_time_secs(), which is 32 bits friendly, fixes #3143
2016-01-10 18:24:55 -03:00
Juan Linietsky
52e53d4513
-Added a new mode, WRITE_READ to File, to recover compatibility with old projects but also achieve desired functionality. Closes #3272
2016-01-10 15:15:04 -03:00
eska
a6c1a5c6d0
Fix pthread renaming in Open/FreeBSD
2016-01-09 15:56:31 +01:00
Emmanuel Leblond
cabf923484
Remove unnecessary null pointer checks
2016-01-04 11:46:16 +01:00
Juan Linietsky
908f75c23f
having active items is pointless in input map
2016-01-03 18:52:42 -03:00
Juan Linietsky
5769f8aaae
Change rb+ to wb+ on file access READ_WRITE to allow more use cases, closes #2278
2016-01-02 12:03:33 -03:00
George Marques
5be9ff7b67
Update copyright to 2016 in headers
2016-01-01 11:50:53 -02:00
Ariel Manzur
02d6669a38
threads
2015-12-22 10:08:20 -03:00
Ariel Manzur
4a7e5fafb1
thread rename for ios and osx (if called from the thread to be renamed)
2015-12-18 02:58:30 -03:00
Ariel Manzur
10298b9534
thread set name
2015-12-17 06:24:27 -03:00
Juan Linietsky
95a469ad28
added binary API to StreamPeer, fixes #2863
2015-12-13 12:53:29 -03:00