z/OS Communications Server: IP Programmer's Guide and Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


get_myaddress()

z/OS Communications Server: IP Programmer's Guide and Reference
SC27-3659-02

Format

#include <rpc.h>
void
get_myaddress(addr)
struct sockaddr_in *addr;

Parameters

addr
Indicates the pointer to the location where the local Internet address is placed.

Usage

The get_myaddress() call puts the local host Internet address into addr. The port number (addrsin_port) is set to htons (PMAPPORT), which is 111.

Context

  • clnttcp_create()
  • getpcport()
  • pmap_getmaps()
  • pmap_getport()
  • pmap_rmtcall()
  • pmap_set()
  • pmap_unset()

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014