Skip to content
Snippets Groups Projects
  1. Feb 19, 2022
    • Deucе's avatar
      typedef a socket_buffer_t · 98318335
      Deucе authored
      This is so we can deal with send(), recv() and friends taking
      a void* on BSD stacks, and a char* on Win32.
      
      Not a big deal for C where a void* is universal, but C++ hates that
      type of thing.
      98318335
  2. Feb 11, 2022
  3. Apr 04, 2021
  4. 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
  5. 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
  6. 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
  7. Dec 06, 2020
  8. 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
  9. Nov 21, 2020
  10. Aug 16, 2020
  11. Aug 08, 2020
  12. May 25, 2020
  13. Apr 19, 2020
  14. Sep 10, 2019
  15. Aug 06, 2019
  16. Jun 04, 2018
  17. Mar 04, 2018
  18. May 21, 2016
  19. Nov 16, 2014
  20. Feb 10, 2014
  21. Feb 09, 2014
  22. Feb 07, 2014
  23. Oct 29, 2013
  24. Oct 11, 2013
  25. Sep 05, 2013
  26. Sep 04, 2013
  27. Sep 01, 2013
  28. Aug 31, 2013
  29. May 24, 2010
  30. Mar 09, 2010
  31. Mar 05, 2010
  32. Oct 07, 2009
  33. Jan 09, 2009
Loading