Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-1917

Create IP endpoint struct to abstract IPv4/IPv6 calls

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • libprocess
    • None

    Description

      create a class similar to IPEndPoint[1] that would help work with the SockaddrStorage struct. This class will avoid placing in the methods statements like the one (for getting the ip address or address length):

      if(family == AF_INET) {
        do IPv4 API call
      } else if(family == AF_INET6) {
        do IPV6 API call
      }
      

      (see https://code.google.com/p/chromium/codesearch#chromium/src/net/base/ip_endpoint.h&cl=GROK&ct=xref_jump_to_def&l=23&gsn=IPEndPoint)

      Attachments

        Activity

          People

            evelinad Evelina Dumitrescu
            dhamon Dominic Hamon
            Dominic Hamon Dominic Hamon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: