aboutsummaryrefslogtreecommitdiff
path: root/drivers/unix/stream_peer_tcp_posix.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-081-0/+1
|
* Avoid deadlock when writing/reading data on a connecting TCP socketFabio Alessandrelli2017-03-221-9/+4
| | | | | | | 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)
* Remove set_ip_type from network classes (no longer needed)Fabio Alessandrelli2017-03-221-4/+2
| | | | | | | | | | | | | | | - 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)
* Convert validity checks of IP_Address to is_valid method.Fabio Alessandrelli2017-03-221-1/+1
| | | | (cherry picked from commit 98a7e2b4e09791705cd9dfd4d13611bc02fe47d4)
* TCP connect always opens correct socket typeFabio Alessandrelli2017-03-221-3/+8
| | | | | | TCP client connections does not need to rely on ipv6 dual stack sockets (cherry picked from commit 55b4f3686d8f51958132a1a1745cc4e128fd118d)
* Bring that Whole New World to the Old Continent tooRémi Verschelde2017-03-191-32/+29
| | | | | Applies the clang-format style to the 2.1 branch as done for master in 5dbf1809c6e3e905b94b8764e99491e608122261.
* Welcome in 2017, dear changelog reader!Rémi Verschelde2017-01-121-1/+1
| | | | | | | | | | 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! (cherry picked from commit c7bc44d5ad9aae4902280012f7654e2318cd910e)
* IP_Address now handle IPv4 and IPv6 transparentlyFabio Alessandrelli2017-01-041-1/+1
| | | | | | | | | | | | 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) (cherry picked from commit 1aff508dd9713abf0db0d0436fa7f7c4788c5a4a)
* Migrate int.IP_TYPE_ constants to IP.TYPE_Fabio Alessandrelli2017-01-041-2/+2
| | | | (cherry picked from commit c18c5013f837ea7d4de2f022d36f84e0abce6439)
* Automatically map IPv4 address to IPv6 when neededFabio Alessandrelli2017-01-041-2/+2
| | | | (cherry picked from commit 9200da58e4c2498c833d9f2505600c7049e80940)
* Use an instance variable for ip_type in raw socketsFabio Alessandrelli2017-01-041-2/+4
| | | | | | | | | 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 95bdd977686005d3d813eb09aca625384f1774c1)
* Properly handle tcp connection failureFabio Alessandrelli2017-01-041-1/+6
| | | | (cherry picked from commit 4f07b595a17a633c65c5df43ecdaa37667a475e9)
* Fix windows debugger connection problems.Fabio Alessandrelli2016-12-111-2/+2
| | | | | | | 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 812908e236e83db368dfef49b8badb9a6182e1de)
* Pass correct address size (ipv4,ipv6) to socket connect, bind, sendtoFabio Alessandrelli2016-12-111-4/+4
| | | | | | | 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 80e911647c5df21c5b6a06876f1d48e21cd1f5fc)
* added windows support for ipv6, cleaned up unix codeAriel Manzur2016-12-111-20/+4
| | | | (cherry picked from commit 672225b710815865449e7930255468d1c085b137)
* adding ipv6Ariel Manzur2016-12-111-11/+23
| | | | (cherry picked from commit 887a897c02144f2d01896d3112bdae5ce7d6df5c)
* Update copyright to 2016 in headersGeorge Marques2016-01-011-1/+1
|
* added binary API to StreamPeer, fixes #2863Juan Linietsky2015-12-131-0/+9
|
* Haiku: remove an #ifdef as the platform now supports MSG_NOSIGNALKostadin Damyanov2015-06-101-4/+0
|
* Haiku: some small fixesKostadin Damyanov2015-05-251-3/+2
|
* Haiku: link with the haiku libs, stub the OS_Haiku class.Kostadin Damyanov2015-05-251-2/+6
|
* Haiku: fix building with UNIX_ENABLED.Kostadin Damyanov2015-05-251-2/+7
|
* Updated copyright year in all headersJuan Linietsky2015-04-181-1/+1
|
* GODOT IS OPEN SOURCEJuan Linietsky2014-02-091-0/+388