putshort()

The putshort() call places short byte quantities into the byte stream.

Syntax

#include <sys\types.h>
#include <netinet\in.h>
#include <arpa\nameser.h>
#include <resolv.h>
void putshort (s, msgp)
u_short s;
u_char *msgp;

Parameters

s

msgp

Description

The putshort() call puts short byte quantities into the byte stream or arbitrary byte boundaries.

The putshort() call is one of a group of calls that form the resolver, a set of functions that resolve domain names. Global information used by the resolver calls is kept in the _res data structure. The <RESOLV.H> file contains the _res structure definition. (See The _res Data Structure for more on the _res data structure.)

Related Calls


[Back: putlong()]
[Next: Raccept()]