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

_getlong Subroutine

Purpose

Retrieves long byte quantities.

Library

Standard C Library (libc.a)

Syntax

#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>
unsigned long _getlong (MessagePtr)
u_char *MessagePtr;

Description

The _getlong subroutine gets long quantities from the byte stream or arbitrary byte boundaries.

The _getlong subroutine is one of a set of subroutines that form the resolver, a set of functions that resolves domain names. Global information used by the resolver subroutines is kept in the _res data structure. The /usr/include/resolv.h file contains the _res structure definition.

Parameters

MessagePtr Specifies a pointer into the byte stream.

Return Values

The _getlong subroutine returns an unsigned long (32-bit) value.

Implementation Specifics

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

All applications containing the _getlong subroutine must be compiled with _BSD set to a specific value. Acceptable values are 43 and 44. In addition, all socket applications must include the BSD libbsd.a library.

All applications containing the _getlong subroutine must be compiled with _BSD set to a specific value. Acceptable values are 43 and 44. In addition, all socket applications must include the BSD libbsd.a library.

Files

/etc/resolv.conf
                          Lists name server and domain names.

Related Information

The dn_comp subroutine, dn_expand subroutine, _getshort subroutine, putlong subroutine, putshort subroutine, res_init subroutine, res_mkquery subroutine, res_query subroutine, res_search subroutine, res_send subroutine.

Sockets Overview, and Understanding Domain Name Resolution in AIX Version 4.3 Communications Programming Concepts.


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