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
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
dn_comp() dn_expand()
dn_find()
dn_skipname()
putlong()
res_init()
res_mkquery()
res_query()
res_send()