[ Previous ] [ Contents ] [ Index ] [ Next ]

Ns_GetHostByAddr

Overview

Convert an IP address to a hostname

Syntax

    int Ns_GetHostByAddr(
    Ns_DString *pds,
    char *addrStr
    );

Description

The Ns_GetHostByAddr function converts a numeric IP address into a host name. If no name can be found, the function returns NS_FALSE; otherwise, it returns NS_TRUE. Because the response time of the Domain Name Service can be slow, this function may significantly delay the response to a client. The hostname string is appended to the specified Ns_DString (pds).

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1998-99 America Online, Inc.