Skip to content
Snippets Groups Projects
  1. Mar 31, 2021
  2. Mar 30, 2021
  3. Mar 29, 2021
  4. Mar 28, 2021
  5. Mar 27, 2021
  6. Mar 26, 2021
  7. Mar 25, 2021
  8. Mar 23, 2021
  9. Mar 21, 2021
  10. 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
Loading