• src/syncterm/rlogin.c ssh.c src/xpdev/sockwrap.c sockwrap.h

    From Deuc¨@VERT to Git commit to main/sbbs/master on Saturday, March 20, 2021 15:10:09
    https://gitlab.synchro.net/main/sbbs/-/commit/99f25324fffb4b15dd1d40b0
    Modified Files:
    src/syncterm/rlogin.c ssh.c src/xpdev/sockwrap.c sockwrap.h
    Log Message:
    Add three new socket status functions:

    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.

    ---
    ş Synchronet ş Vertrauen ş Home of Synchronet ş [vert/cvs/bbs].synchro.net