2 WSHelper DNS/Hesiod Library for WINSOCK
17 int FAR PASCAL res_mkquery(int op, char FAR *dname, int qclass, int type,
18 char FAR *data, int datalen, struct rrec FAR *newrr,
19 char FAR *buf, int buflen);
21 int FAR PASCAL res_send(char FAR *msg, int msglen, char FAR *answer, int anslen);
23 int FAR PASCAL res_init();
25 int FAR PASCAL dn_comp(char FAR *exp_dn, char FAR *comp_dn, int length,
26 char FAR * FAR *dnptrs, char FAR * FAR *lastdnptr);
28 int FAR PASCAL dn_expand(char FAR *msg, char FAR *eomorig, char FAR *comp_dn,
29 char FAR *exp_dn, int length);
31 struct hostent FAR* FAR PASCAL rgethostbyname(char FAR *name);
33 struct hostent FAR* FAR PASCAL rgethostbyaddr(char FAR *addr, int len, int type);
35 LPSTR FAR PASCAL hes_to_bind(char FAR *HesiodName, char FAR *HesiodNameType);
37 LPSTR * FAR PASCAL hes_resolve(char FAR *HesiodName, char FAR *HesiodNameType);
39 int FAR PASCAL hes_error(void);
41 void FAR PASCAL res_setopts(long opts);
43 long FAR PASCAL res_getopts(void);
45 unsigned long FAR PASCAL inet_aton(register const char *cp, struct in_addr *addr);
47 LPSTR FAR PASCAL gethinfobyname(LPSTR name);
49 LPSTR FAR PASCAL getmxbyname(LPSTR name);
51 LPSTR FAR PASCAL getrecordbyname(LPSTR name, int rectype);
53 DWORD FAR PASCAL rrhost( LPSTR lpHost );
55 struct servent FAR * FAR PASCAL rgetservbyname(LPSTR name, LPSTR proto);
61 #endif /* _WSHELPER_ */