1. 29 May, 2018 1 commit
  2. 29 May, 2017 1 commit
  3. 07 Jan, 2016 1 commit
  4. 29 Jun, 2015 2 commits
  5. 23 Jun, 2015 1 commit
    • Chun-wei Fan's avatar
      gio/ginetaddress.c: Fix Windows XP inet_pton() Emulation · 3e29dada
      Chun-wei Fan authored
      We need to be more careful when we try to assign values to gpointers, so
      that means we have to assign the value to the properly-dereference
      gpointer, so that the assigned value will be retained after the function
      returns.  This code will be dropped soon, but it is done for XP
      compatibility's sake for 2.44.
      
      Should fix the issue reported in bug 730352 comment #24.
      3e29dada
  6. 06 Mar, 2015 1 commit
    • Chun-wei Fan's avatar
      Windows: Use Standard Networking Functions If Possible · 6fe28eef
      Chun-wei Fan authored
      Currently, the Windows code use Winsock2-specific APIs to try to emulate
      calls such as inet_pton(), inet_ntop() and if_nametoindex(), which may not
      do the job all the time.  On Vista and later, Winsock2 does provide a
      proper implementation for these functions, so we can use them if they exist
      on the system, by querying for them during g_networking_init().  Otherwise,
      we continue to use the original code path for these, in the case of XP and
      Server 2003.
      
      This enables many of the network-address tests to pass on Windows as a
      result, when the native Winsock2 implementations can be used.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=730352
      6fe28eef
  7. 18 Jul, 2014 1 commit
  8. 31 Jan, 2014 1 commit
  9. 08 Jan, 2014 1 commit
  10. 24 Jun, 2013 2 commits
  11. 05 Jun, 2013 1 commit
    • Dan Winship's avatar
      ginetaddress: fix addr/string conversions on windows · 59ed934b
      Dan Winship authored
      When parsing an address, we need to re-set "len" between IPv4 and
      IPv6, since WSAStringToAddress() might set it to sizeof(struct sin_addr)
      when trying to parse the string as IPv4, even if it fails. Also, we
      need to make sure to not pass strings to WSAStringToAddress() that it
      will accept but that we don't want it to.
      
      When stringifying an address, we need to clear the sockaddr before
      filling it in, so we don't accidentally end up with an unwanted
      scope_id or the like.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=701401
      59ed934b
  12. 12 Dec, 2012 1 commit
    • Dan Winship's avatar
      Add gnetworking.h · b377e696
      Dan Winship authored
      Install a public "gnetworking.h" header that can be used to include
      the relevant OS-dependent networking headers. This does not really
      abstract away unix-vs-windows however; error codes, in particular,
      are incompatible.
      
      gnetworkingprivate.h now contains just a few internal URI-related
      functions
      
      Also add a g_networking_init() function to gnetworking.h, which can be
      used to explicitly initialize OS-level networking, rather than having
      that happen as a side-effect of registering GInetAddress.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=623187
      b377e696
  13. 15 May, 2012 1 commit
  14. 16 Jan, 2012 1 commit
  15. 11 Jan, 2012 1 commit
  16. 14 Apr, 2011 1 commit
  17. 08 Apr, 2011 1 commit
  18. 29 Dec, 2010 1 commit
  19. 07 Jul, 2010 1 commit
  20. 27 May, 2009 1 commit
  21. 25 May, 2009 1 commit
  22. 29 Apr, 2009 2 commits
  23. 26 Apr, 2009 2 commits
    • Dan Winship's avatar
      Fix the networking stuff on (current) OS X · 7c9caecf
      Dan Winship authored
      OS X's headers split up the current and old (BIND 4) nameserver stuff
      slightly differently than Linux does, but explicitly including
      arpa/nameser_compat.h does the right thing on both. Part of #580301
      7c9caecf
    • Dan Winship's avatar
      Fix ginetaddress.c compile on Solaris · 9a15da50
      Dan Winship authored
      In glibc, IN6_IS_ADDR_UNSPECIFIED() et al. cast their argument to a
      uint32_t*, so it doesn't matter whether you pass them the in6_addr
      itself (which is what you're supposed to do) or one of its union
      members (which is what we were actually doing). Solaris's macro
      accesses the in6_addr fields directly though, and so only works if you
      pass the actual in6_addr. #580194.
      9a15da50
  24. 22 Apr, 2009 3 commits
    • Christian Persch's avatar
      Use P_ for translatable param spec strings · a9c33dbd
      Christian Persch authored
      Translatable param spec strings should be annotated with P_() instead of
      plain _(). Bug #579830.
      a9c33dbd
    • Dan Winship's avatar
      Add GResolver, a glib-ish interface to DNS · c94d3f92
      Dan Winship authored
      GResolver provides asynchronous (and synchronous-but-cancellable) APIs
      for resolving hostnames, reverse-resolving IP addresses back to
      hostnames, and resolving SRV records. Part of #548466.
      c94d3f92
    • Dan Winship's avatar
      Add network address and socket types · 68fc0556
      Dan Winship authored
      Types and methods for dealing with IPv4 and IPv6 addresses (and UNIX
      domain socket addresses under UNIX). This does not include code for
      actual socket I/O.
      
      Originally from "gnio". Much of the code was written by Christian
      Kellner, Samuel Cormier-Iijima, and Ryan Lortie.
      
      Part of #548466.
      68fc0556