Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   dn_comp    ( 3 )

процедуры распознавания (resolver routines)

  Name  |    Synopsis    |  Description  |  Return value  |  Files  |  Attributes  |  Conforming to  |  See also  |

Синопсис (Synopsis)

#include <netinet/in.h> #include <arpa/nameser.h> #include <resolv.h>

struct __res_state; typedef struct __res_state *res_state;

int res_ninit(res_state statep);

void res_nclose(res_state statep);

int res_nquery(res_state statep, const char *dname, int class, int type, unsigned char *answer, int anslen);

int res_nsearch(res_state statep, const char *dname, int class, int type, unsigned char *answer, int anslen);

int res_nquerydomain(res_state statep, const char *name, const char *domain, int class, int type, unsigned char *answer, int anslen);

int res_nmkquery(res_state statep, int op, const char *dname, int class, int type, const unsigned char *data, int datalen, const unsigned char *newrr, unsigned char *buf, int buflen);

int res_nsend(res_state statep, const unsigned char *msg, int msglen, unsigned char *answer, int anslen);

int dn_comp(const char *exp_dn, unsigned char *comp_dn, int length, unsigned char **dnptrs, unsigned char **lastdnptr);

int dn_expand(const unsigned char *msg, const unsigned char *eomorig, const unsigned char *comp_dn, char *exp_dn, int length);

Deprecated extern struct __res_state _res;

int res_init(void);

int res_query(const char *dname, int class, int type, unsigned char *answer, int anslen);

int res_search(const char *dname, int class, int type, unsigned char *answer, int anslen);

int res_querydomain(const char *name, const char *domain, int class, int type, unsigned char *answer, int anslen);

int res_mkquery(int op, const char *dname, int class, int type, const unsigned char *data, int datalen, const unsigned char *newrr, unsigned char *buf, int buflen);

int res_send(const unsigned char *msg, int msglen, unsigned char *answer, int anslen);

Link with -lresolv.