• src/sbbs3/js_socket.c js_socket.h

    From deuce@1:103/705 to CVS commit on Mon Jan 8 22:48:27 2018
    src/sbbs3 js_socket.c 1.181 1.182 js_socket.h 1.3 1.4
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv18537

    Modified Files:
    js_socket.c js_socket.h
    Log Message:
    Fix up TLS sessions.

    1) Only call crpytFlushData() if there *is* data.
    2) Only call cryptFlushData() once per call to do_CryptFlush()
    3) If cryptPushData() does a short write, flush immediately, regardless of
    the preferences
    4) Pass the whole private data pointer to do_CryptFlush() so it can only
    call cryptFlushData() if there's unflushed data
    5) Extend the private data structure to track unflushed data



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Sun Mar 18 23:59:48 2018
    src/sbbs3 js_socket.c 1.217 1.218 js_socket.h 1.5 1.6
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv329

    Modified Files:
    js_socket.c js_socket.h
    Log Message:
    Make peek(), nread, data_waiting, and poll() usable for TLS sockets by recv()ing
    a single byte into a special buffer. Note that peek() and nread will never return/indicate more than a single byte, so scripts which rely on these may
    be inefficient with TLS (websocket stuff appears to use nread heavily).



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Tue Aug 20 18:58:55 2019
    src/sbbs3 js_socket.c 1.240 1.241 js_socket.h 1.6 1.7
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv17530

    Modified Files:
    js_socket.c js_socket.h
    Log Message:
    Fix the "local_port" property for ListeningSocket(). Other properties that depend on a socket descriptor still won't work.


    --- SBBSecho 3.08-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Sat Feb 24 01:19:34 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/bfa0668e5fc4da86b0dea36c
    Modified Files:
    src/sbbs3/js_socket.c js_socket.h
    Log Message:
    Report getaddrinfo() failure result in Socket.error and error_str (not errno)

    As Nelgin pointed out, a Socket.connect() failure for reasons of address/host lookup failure would report a stale/nonsense Socket.error/error_str value.

    This change required us to query/store the socket API/getaddrinfo error string at the time of failure (for the Socket.error_str property value) rather than converting from number to string at the time the property is read.

    This does mean that sometimes Socket.error is a errno value and sometimes its
    a getaddrinfo (EAI_*) error value. Since the EAI_* values are negative, it should be obvious which is which.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)