[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Communications Technical Reference, Volume 1

host2netname Subroutine

Purpose

Converts a domain-specific host name to an operating-system-independent network name.

Library

C Library (libc.a)

Syntax

#include <rpc/rpc.h>
host2netname (name, host, domain)
char *name;
char *host;
char *domain;

Description

The host2netname subroutine converts a domain-specific host name to an operating-system-independent network name.

This subroutine is the inverse of the netname2host subroutine.

Parameters

name Points to the network name (or netname) of the server process owner. The name parameter can be either the host name derived from the host2netname subroutine or the user name derived from the user2netname subroutine.
host Points to the name of the machine on which the permissions were created.
domain Points to the domain name.

Return Values

Upon successful completion, this subroutine returns a value of 1. If unsuccessful, it returns a value of 0.

Implementation Specifics

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

Related Information

The netname2host subroutine, user2netname subroutine.

List of RPC Programming References.

Remote Procedure Call (RPC) Overview for Programming in AIX Version 4.3 Communications Programming Concepts.


[ Previous | Next | Contents | Glossary | Home | Search ]