• src/sbbs3/js_socket.c

    From Deucе@VERT to Git commit to main/sbbs/master on Thu Oct 3 09:34:59 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/e67f51d0eaf484d995ade630
    Modified Files:
    src/sbbs3/js_socket.c
    Log Message:
    Document the connect() callback thing.

    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Sat Nov 9 20:30:54 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/f1cdaea3b87caa96bbf9b8c6
    Modified Files:
    src/sbbs3/js_socket.c
    Log Message:
    Don't check recvline() timeout *before* checking if there's data to receive

    This was a regression: Socket.recvline() used to not care what the timeout duration was so long as there were bytes to receive.

    Also, remove the ".0" from timeout values in documented mehtods that don't
    (any longer) accept floating point timeout durations. We used to support fractional seconds for some of these methods, and that was implied by using
    the floating point default values, but that's no longer the case. poll()
    still accepts a floating point timeout.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Mon Nov 11 23:50:59 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/f4ea0c75823aafb6fa3d9da8
    Modified Files:
    src/sbbs3/js_socket.c
    Log Message:
    Document return values of Socket.poll()

    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Sun Jan 5 21:06:01 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/82a999f46e27a33f425e4625
    Modified Files:
    src/sbbs3/js_socket.c
    Log Message:
    Resolve MSVC warning about mismatch signed/unsigned compares

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Mon Jan 6 22:27:24 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/bf7ad258d687fdafff5a370a
    Modified Files:
    src/sbbs3/js_socket.c
    Log Message:
    Fix TLS short send issue.

    On JS TLS sockets, sends over 16384 bytes would be truncated to
    the next multiple of 8192 higher than half the buffer length.

    This was triggered because we send chunks of 8192 bytes at a time,
    and decrement the length each time through the loop. We return
    "success" when the total sent so far is higher than the length
    remaining.

    Fixes bug reported in #Synchronet by Accession.

    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Mon Jan 6 22:37:02 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/a4c676ed06a1f9b08850bacf
    Modified Files:
    src/sbbs3/js_socket.c
    Log Message:
    Fix apparent copy pasta of the total/len in recv.

    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Mon Jan 20 21:45:29 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/42db53c892805678e0b3a474
    Modified Files:
    src/sbbs3/js_socket.c
    Log Message:
    Add constants to the Socket class.

    This is just the ones mentioned in the jsdocs. I'll add more
    if/when I want them. :D

    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Fri Jan 31 20:46:08 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/5ac2c66c95c331f9a9d43b28
    Modified Files:
    src/sbbs3/js_socket.c
    Log Message:
    Set Socket.type correctly on accept() from multisock

    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Fri Jan 31 20:53:00 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/a839a6f036fd4f280793e1d2
    Modified Files:
    src/sbbs3/js_socket.c
    Log Message:
    Fix last commit.

    If we called accept(), it's not datagram, and if you're using SCTP
    and Synchronet lies to you, you can fix it yourself.

    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Sun Feb 2 01:41:36 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/82a6e7c51ae366568e7e293b
    Modified Files:
    src/sbbs3/js_socket.c
    Log Message:
    Add Socket.tls_psk_id property

    If tls_psk is used, indicates which entry in tls_psk was used by
    the remote.

    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Sun Feb 2 19:09:45 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/83d6ece489c711d29e3b11c3
    Modified Files:
    src/sbbs3/js_socket.c
    Log Message:
    Use the new TLS PSK flag to control if sock.tls_psk_id is set

    Now both the "regular" certificate, and PSK will be supported on
    a TLS socket, and it's up to the client to check which was used.

    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Sun Feb 2 20:30:55 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/7b548fd3de6a1ee6388ac7e8
    Modified Files:
    src/sbbs3/js_socket.c
    Log Message:
    Correct JSDOCS for TLS PSK properties

    The wrong version nubmer was specified for these new properties - these properties were added in v3.20c which is represented numerically as 32002 in decimal.

    The description of the tls_psk_id property was missing socket_prop_desc.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Sun Feb 2 21:42:54 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/e10260bc862550079536fc41
    Modified Files:
    src/sbbs3/js_socket.c
    Log Message:
    Remove accidental whitespace

    No functional change.

    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Tue Feb 4 19:16:47 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/eda230f782c548aec09f51b8
    Modified Files:
    src/sbbs3/js_socket.c
    Log Message:
    Don't use deprecated function: inet_addr()

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