Strophe 0.13
XMPP client library
|
DNS resolver. More...
Data Structures | |
struct | resolver_srv_rr_t |
Enumerations | |
enum | xmpp_domain_state_t { XMPP_DOMAIN_NOT_FOUND , XMPP_DOMAIN_FOUND , XMPP_DOMAIN_ALTDOMAIN } |
Functions | |
void | resolver_initialize (void) |
void | resolver_shutdown (void) |
resolver_srv_rr_t * | resolver_srv_rr_new (xmpp_ctx_t *ctx, const char *host, unsigned short port, unsigned short prio, unsigned short weight) |
int | resolver_srv_lookup_buf (xmpp_ctx_t *ctx, const unsigned char *buf, size_t len, resolver_srv_rr_t **srv_rr_list) |
Perform lookup for RFC1035 message format. | |
int | resolver_srv_lookup (xmpp_ctx_t *ctx, const char *service, const char *proto, const char *domain, resolver_srv_rr_t **srv_rr_list) |
Resolve SRV record. | |
void | resolver_srv_free (xmpp_ctx_t *ctx, resolver_srv_rr_t *srv_rr_list) |
Release a list returned by resolver_srv_lookup() or resolver_srv_lookup_buf(). | |
DNS resolver.
enum xmpp_domain_state_t |
void resolver_initialize | ( | void | ) |
void resolver_shutdown | ( | void | ) |
resolver_srv_rr_t * resolver_srv_rr_new | ( | xmpp_ctx_t * | ctx, |
const char * | host, | ||
unsigned short | port, | ||
unsigned short | prio, | ||
unsigned short | weight | ||
) |
int resolver_srv_lookup_buf | ( | xmpp_ctx_t * | ctx, |
const unsigned char * | buf, | ||
size_t | len, | ||
resolver_srv_rr_t ** | srv_rr_list | ||
) |
Perform lookup for RFC1035 message format.
This function allocates all elements.
ctx | a Strophe context object |
buf | message in RFC1035 format |
len | length of the message |
srv_rr_list | is the result |
int resolver_srv_lookup | ( | xmpp_ctx_t * | ctx, |
const char * | service, | ||
const char * | proto, | ||
const char * | domain, | ||
resolver_srv_rr_t ** | srv_rr_list | ||
) |
Resolve SRV record.
ctx | a Strophe context object |
service | service of the SRV record |
proto | protocol of the SRV record |
domain | resolving domain |
srv_rr_list | is the result |
void resolver_srv_free | ( | xmpp_ctx_t * | ctx, |
resolver_srv_rr_t * | srv_rr_list | ||
) |
Release a list returned by resolver_srv_lookup() or resolver_srv_lookup_buf().
ctx | a Strophe context object |
srv_rr_list | a list allocated by lookup functions |