Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-114

Allow clients to provide their own implementations of the socket API

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Implementation

    Description

      If users of the C++ driver could provide their own socket API calls, they could do things like provide asynchronous versions of the calls.

      One idea is to change sock.cpp to instead of calling the native socket syscalls (send, recv, connect, etc.) to wrap them in other functions that are implemented in a separate file so that it when the driver is compiled a user could link in a different file with different socket functions.

      Another idea is to allow the user of the API to initialize it with a set of function pointers for the system calls that defaulted to passthroughs.

      Attachments

        Activity

          People

            Unassigned Unassigned
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: