• src/xpdev/sockwrap.h

    From Deucе@VERT to Git commit to main/sbbs/master on Sun Apr 4 16:18:09 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/702f73cc8420b7b47d098f52
    Modified Files:
    src/xpdev/sockwrap.h
    Log Message:
    Add nfds_t required by poll(), and add note describing Win32 bug

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Sat Feb 19 13:47:41 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/3f08e8f6ecb50fa31f03eea7
    Modified Files:
    src/xpdev/sockwrap.h
    Log Message:
    typedef a socket_buffer_t

    This is so we can deal with send(), recv() and friends taking
    a void* on BSD stacks, and a char* on Win32.

    Not a big deal for C where a void* is universal, but C++ hates that
    type of thing.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Sat Feb 19 14:43:23 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/edc4b07532032ee90152da25
    Modified Files:
    src/xpdev/sockwrap.h
    Log Message:
    Make socket_send_buffer_t separate from socket_recv_buffer_t

    It seems we can't add a const to a typedef in a static_cast<>()

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Sat Feb 19 21:46:19 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/1d7b980540f0254306140e61
    Modified Files:
    src/xpdev/sockwrap.h
    Log Message:
    Add socket_ioctl_ptr_t

    For Win32, this is actually the pointer type an ioctl() third
    argument needs to be. For other OSs, this is basically what an
    FIONBIO third argument needs to be... there's really no restruction
    at all on what arguments after the second to ioctl() need to be.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Sat Feb 19 21:53:25 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/24a7649626aa3d10a185f7cd
    Modified Files:
    src/xpdev/sockwrap.h
    Log Message:
    Fix socket_ioctl_ptr_t

    On Win32 it can't be defined until after winsock*.h is #included.
    On everything else, it needs to be a pointer.

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