Gets the user's Internet Protocol (IP) address.
C Library (libc.a)
#include <rpc/rpc.h>
void
get_myaddress ( addr)
struct sockaddr_in *addr;
The get_myaddress subroutine gets the machine's IP address without consulting the library routines that access the /etc/hosts file.
Item | Description |
---|---|
addr | Specifies the address where the machine's IP address is placed. The port number is set to a value of htons (PMAPPORT). |