• src/sbbs3/js_socket.c js_socket.h

    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)