Places long byte quantities into the byte stream.
Standard C Library (libc.a)
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>
void _putlong ( Long, MessagePtr)
unsigned long Long;
u_char *MessagePtr;
The _putlong subroutine places long byte quantities into the byte stream or arbitrary byte boundaries.
The _putlong subroutine is one of a set of subroutines that form the resolver, a set of functions that resolve 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.
All applications containing the _putlong subroutine must be compiled with the _BSD macro set to a specific value. Acceptable values are 43 and 44. In addition, all socket applications must include the BSD libbsd.a library.
Item | Description |
---|---|
Long | Represents a 32-bit integer. |
MessagePtr | Represents a pointer into the byte stream. |
Item | Description |
---|---|
/etc/resolv.conf | Lists the name server and domain name. |