#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>
void _putlong(unsigned long long_integer,
unsigned char *message_pointer)
The _putlong() function is used to put an unsigned long byte quantity into a byte stream.
None.
_putlong() puts a 32-bit integer into message_pointer.
DNS packets have fields that are unsigned long integers (for example, TTL and serial number). _putlong() is generally used to put these fields into a DNS packet.
| Top | UNIX-Type APIs | APIs by category |