aboutsummaryrefslogtreecommitdiff
path: root/drivers/unix/socket_helpers.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Improvements to scons defined WINVER/_WIN32_WINNTFabio Alessandrelli2017-01-121-5/+5
| | | | (cherry picked from commit 65483d57bf322f847ecb1ab906e8f4fac49f2557)
* IP_Address now handle IPv4 and IPv6 transparentlyFabio Alessandrelli2017-01-041-17/+13
| | | | | | | | | | | | 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-9/+9
| | | | (cherry picked from commit c18c5013f837ea7d4de2f022d36f84e0abce6439)
* Move V6ONLY flag selection inside helpersFabio Alessandrelli2017-01-041-4/+4
| | | | (cherry picked from commit 4d90a4fcd5fcdca42df47062f94a1fa4e5635a94)
* Automatically map IPv4 address to IPv6 when neededFabio Alessandrelli2017-01-041-4/+16
| | | | (cherry picked from commit 9200da58e4c2498c833d9f2505600c7049e80940)
* Fix _set_ip_addr_port not setting the address.Fabio Alessandrelli2017-01-041-1/+1
| | | | (cherry picked from commit cdc1ca0f1301bb907121292db83f98706722ff1e)
* Define IPV6_V6ONLY flag if not defined on windows (old mingw versions)Fabio Alessandrelli2016-12-111-0/+7
| | | | (cherry picked from commit bdc7ca84cac727f3f94663f23e1229450230bd2e)
* TCP/UDP Listen sockets can now be set to IPv6 onlyFabio Alessandrelli2016-12-111-2/+2
| | | | (cherry picked from commit eb27e993f0f2fb3de48b7b8aa01c74cc1635a178)
* Fix windows debugger connection problems.Fabio Alessandrelli2016-12-111-0/+21
| | | | | | | 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-2/+6
| | | | | | | 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-0/+66
(cherry picked from commit 672225b710815865449e7930255468d1c085b137)