The _getshort() call retrieves short byte quantities.
Syntax
#include <sys\types.h> #include <netinet\in.h> #include <arpa\nameser.h> #include <resolv.h> u_short _getshort (msgp) u_char *msgp;
Parameters
msgp
Description
The _getshort() call gets quantities from the byte stream or arbitrary byte boundaries.
The _getshort() 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.)
Return Values
The _getshort() call returns an unsigned short (16-bit) value.
Related Calls
dn_comp() dn_expand()
dn_find()
dn_skipname()
putlong()
putshort()
res_init()
res_mkquery()