[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Technical Reference: Communications, Volume 1


get_myaddress Subroutine

Purpose

Gets the user's Internet Protocol (IP) address.

Library

C Library (libc.a)

Syntax

#include <rpc/rpc.h>


void
get_myaddress ( addr)
struct sockaddr_in *addr;

Description

The get_myaddress subroutine gets the machine's IP address without consulting the library routines that access the /etc/hosts file.

Parameters


addr Specifies the address where the machine's IP address is placed. The port number is set to a value of htons (PMAPPORT).

Implementation Specifics

This subroutine is part of Base Operating System (BOS) Runtime.

Related Information

The /etc/hosts file.

List of RPC Programming References.

Understanding the Internet Protocol (IP) in AIX 5L Version 5.1 System Management Guide: Communications and Networks.

Remote Procedure Call (RPC) Overview for Programming in AIX 5L Version 5.1 Communications Programming Concepts.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]