Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Converts a socket address to a string describing the host and another string describing the service.

 

Files

net_bsd.h/net_bsd.c

Prototype

Arguments

p_sockaddr

    Pointer to the sockaddr structure with the protocol address to be converted.

addrlen

    Length of the sockaddr structure pointed to by p_sockaddr.

p_host_name

    Pointer to the host name string allocated by the caller.

hostlen

    Length of string pointed to by p_host_name.

p_service_name

    Pointer to the service name string allocated by the caller.

servicelen

    Length of string pointed to by p_service_name.

flags

    Flags that change how this function converts the socket address.

        NI_NAMEREQD
        NI_DGRAM
        NI_NOFQDN
        NI_NUMERICHOST
        NI_NUMERICSERV

Returned Value

0, if no error.

The following EAI 

    EAI_AGAIN
    EAI_BADFLAGS
    EAI_FAIL
    EAI_FAMILY
    EAI_MEMORY
    EAI_NONAME
    EAI_OVERFLOW
    EAI_SERVICE

  • No labels