Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-239

Porting Issue -- gethostname() is part of winsock library

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Pending Closed
    • None
    • None
    • proton-c
    • Windows using Visual Studio 2010

    Description

      In Visual Studio, gethostname() is found within the winsock library. To use it in proton.c, we have to include the winsock header and make sure the WSAStartup() (used to initialize the windows socket library) has already been called by pn_driver().

      I was wondering if we could isolate the winsock header so that it is only included in driver.c.

      We could set up a new function in driver.c called pn_gethostname() whose only function is to call gethostname().

      int pn_gethostname(char *name, int namelen)
      {
      return gethostname(name, namelen);
      }

      Attachments

        Activity

          People

            cliffjansen Clifford Jansen
            marydhinton Mary hinton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: