_putlong()--Put Long Byte Quantities


  Syntax
 #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)

  Threadsafe: Yes

The _putlong() function is used to put an unsigned long byte quantity into a byte stream.


Authorities and Locks

None.


Parameters

long_int
(Input) The 32-bit integer to be put into the byte stream.

unsigned char *message_pointer
(Input) The pointer to where the long_integer is to be put.

Return Value

_putlong() puts a 32-bit integer into message_pointer.


Usage Notes

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.


Related Information



API introduced: V3R1
Top | UNIX-Type APIs | APIs by category