|
Home --> Documentations --> PJLIB-UTIL Reference
dns_server.hGo to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __PJLIB_UTIL_DNS_SERVER_H__
00021 #define __PJLIB_UTIL_DNS_SERVER_H__
00022
00027 #include <pjlib-util/types.h>
00028 #include <pjlib-util/dns.h>
00029
00030 PJ_BEGIN_DECL
00031
00044 typedef struct pj_dns_server pj_dns_server;
00045
00062 PJ_DECL(pj_status_t) pj_dns_server_create(pj_pool_factory *pf,
00063 pj_ioqueue_t *ioqueue,
00064 int af,
00065 unsigned port,
00066 unsigned flags,
00067 pj_dns_server **p_srv);
00068
00076 PJ_DECL(pj_status_t) pj_dns_server_destroy(pj_dns_server *srv);
00077
00078
00088 PJ_DECL(pj_status_t) pj_dns_server_add_rec(pj_dns_server *srv,
00089 unsigned count,
00090 const pj_dns_parsed_rr rr[]);
00091
00102 PJ_DECL(pj_status_t) pj_dns_server_del_rec(pj_dns_server *srv,
00103 int dns_class,
00104 pj_dns_type type,
00105 const pj_str_t *name);
00106
00107
00108
00113 PJ_END_DECL
00114
00115
00116 #endif
00117
PJLIB-UTIL Open Source, small footprint, and portable asynchronous/caching DNS resolver, text scanner, STUN client, and XML library
Copyright (C) 2006-2009 Teluu Inc.
|