VMS Help
TCPIP Services, Programming Interfaces, RPC Client Routines, get_myaddr_dest
*Conan The Librarian (sorry for the slow response - running on an old VAX)
|
|
Returns the local host's internet address according to a
destination address.
Format
#include <rpc/rpc.h>
void get_myaddr_dest(struct sockaddr_in *addr, struct
sockaddr_in *dest);
addr
A pointer to a sockaddr_in structure that the routine will load
with the local internet address which would provide a connection
to the remote address specified in dest.
dest
A pointer to a sockaddr_in structure containing an internet
address of a remote host.
Since the local host may have multiple network addresses (each
on its own interface), this routine is used to select the local
address which would provide a connection to the remote address
specified in dest.
This is an alternative to gethostbyname, which invokes yellow
pages. It takes a destination (where we are trying to get to) and
finds an exact network match to go to.
None
[legal]
[privacy]
[GNU]
[policy]
[netiquette]
[sponsors]
[FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.