dnssrv.h File Reference

Go to the source code of this file.

Data Structures

struct  _PurpleSrvResponse

Typedefs

typedef struct _PurpleSrvResponse PurpleSrvResponse
typedef struct _PurpleSrvQueryData PurpleSrvQueryData
typedef void(* PurpleSrvCallback )(PurpleSrvResponse *resp, int results, gpointer data)

Functions

PurpleSrvQueryData * purple_srv_resolve (const char *protocol, const char *transport, const char *domain, PurpleSrvCallback cb, gpointer extradata)
 Queries an SRV record.
void purple_srv_cancel (PurpleSrvQueryData *query_data)
 Cancel an SRV DNS query.


Detailed Description

Definition in file dnssrv.h.


Function Documentation

void purple_srv_cancel ( PurpleSrvQueryData *  query_data  ) 

Cancel an SRV DNS query.

Parameters:
query_data The request to cancel.

PurpleSrvQueryData* purple_srv_resolve ( const char *  protocol,
const char *  transport,
const char *  domain,
PurpleSrvCallback  cb,
gpointer  extradata 
)

Queries an SRV record.

Parameters:
protocol Name of the protocol (e.g. "sip")
transport Name of the transport ("tcp" or "udp")
domain Domain name to query (e.g. "blubb.com")
cb A callback which will be called with the results
extradata Extra data to be passed to the callback