VMS Help  —  TCPIP Services, Programming Interfaces, RPC Client Routines, get_myaddress
    Returns the local host's Internet address.
    Format
      #include  <rpc/rpc.h>
      void  get_myaddress(struct sockaddr_in *addr);

1  –  Arguments

 addr
    A pointer to a sockaddr_in structure that the routine will load
    with the Internet address of the host where the local procedure
    resides.

2  –  Description

    Puts the local host's Internet address into addr without doing
    any name translation. The port number is always set to htons
    (PMAPPORT).

3  –  Return Values

    None
Close Help