• src/xpdev/sockwrap.h

    From Deuc¿@VERT to Git commit to main/sbbs/master on Sunday, April 04, 2021 16:18:09
    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 Saturday, February 19, 2022 13:47:41
    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 Saturday, February 19, 2022 14:43:23
    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 Saturday, February 19, 2022 21:46:19
    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 Saturday, February 19, 2022 21:53:25
    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