Skip to content
Snippets Groups Projects
  1. Feb 20, 2022
    • Deucе's avatar
      Fix socket_ioctl_ptr_t · c60e26d5
      Deucе authored
      On Win32 it can't be defined until after winsock*.h is #included.
      On everything else, it needs to be a pointer.
      c60e26d5
    • Deucе's avatar
      Add socket_ioctl_ptr_t · 41b8c1fc
      Deucе authored
      For Win32, this is actually the pointer type an ioctl() third
      argument needs to be.  For other OSs, this is basically what an
      FIONBIO third argument needs to be... there's really no restruction
      at all on what arguments after the second to ioctl() need to be.
      41b8c1fc
  2. Feb 19, 2022
  3. Feb 11, 2022
  4. Apr 04, 2021
  5. Apr 02, 2021
    • Deucе's avatar
      Initial work on setTimeout() · 19289739
      Deucе authored
      This appears to work and the event handler *should* work on other
      event types already.
      
      Note, this is *nix-only due to the use of poll().  select() will
      need to be used for Windows to keep XP compatability.
      19289739
  6. Mar 20, 2021
    • Deucе's avatar
      Add three new socket status functions: · 7d9e7b0c
      Deucе authored
      socket_readable() returns TRUE if recv() will not block if called
      on the specified socket.
      
      socket_writable() returns TRUE if send() will not block if called
      on the specified socket.
      
      socket_recvdone() returns TRUE if all data has been recv()ed an
      the socket is closed.
      
      "will not block" includes "will return an error".
      
      This matches the three main use-cases for select() of a single socket
      in Synchronet.
      
      Use them in the SyncTERM RLogin stuff so they can be tested easily.
      7d9e7b0c
  7. Mar 19, 2021
    • Deucе's avatar
      First attempt to use poll() · 76bb4aec
      Deucе authored
      There has been a sighting of Synchronet exceeding FD_SETSIZE sockets.
      This means select() is of less use and we need to start migrating to
      either poll() or platform-specific methods to achieve the same end.
      
      This commit is mostly to check that poll() builds on Win32 and that
      it actually works.
      76bb4aec
  8. Dec 06, 2020
  9. Dec 05, 2020
    • Rob Swindell's avatar
      Use portable inet_pton() for all Win32 builds. · 599a754b
      Rob Swindell authored
      Rename the portable inet_pton() to xp_inet_pton() and define a wrapper macro (for all Widows builds) to use it instead of inet_pton() as not all supported Windows systems (e.g. WinXP) have an inet_pton() implementation.
      
      This allows the HAProxy mod to be re-enabled by default without preventing executing on WinXP.
      599a754b
  10. Nov 21, 2020
  11. Aug 16, 2020
  12. Aug 08, 2020
  13. May 25, 2020
  14. Apr 19, 2020
  15. Sep 10, 2019
  16. Aug 06, 2019
  17. Jun 04, 2018
  18. Mar 04, 2018
  19. May 21, 2016
  20. Nov 16, 2014
  21. Feb 10, 2014
  22. Feb 09, 2014
  23. Feb 07, 2014
  24. Oct 29, 2013
  25. Oct 11, 2013
  26. Sep 05, 2013
  27. Sep 04, 2013
  28. Sep 01, 2013
  29. Aug 31, 2013
  30. May 24, 2010
  31. Mar 09, 2010
Loading