Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Shim'ing out GetNameInfo, get/free addrinfo, and GetHostName #3471

Merged
merged 1 commit into from
Oct 1, 2015
Merged

Shim'ing out GetNameInfo, get/free addrinfo, and GetHostName #3471

merged 1 commit into from
Oct 1, 2015

Commits on Oct 1, 2015

  1. Shim'ing out GetNameInfo, get/free addrinfo, and GetHostName.

    The calls to getaddrinfo are not 1-to-1 with the native calls due to
    complexities around the native structs. Calls using sockaddr and
    addrinfo have nested structs pointing to different data depending
    on if the IP is IPv4 or IPv6. To mitigate the complexities around
    this code and around the underlying struct differences on the
    currently supported platforms, I kept the same calling pattern (as
    in Get* and Free*) but converted them to use an intermediate data
    structure that is defined in the PAL. We can then take in the
    required data from the Managed World and determine which native
    types are required, handle all the native structs and casts, and
    give back only the information that the managed code needs in a
    much simpler format.
    Jonathan Miller committed Oct 1, 2015
    Configuration menu
    Copy the full SHA
    f319198 View commit details
    Browse the repository at this point in the history