libwebsockets
Lightweight C library for HTML5 websockets
Loading...
Searching...
No Matches
WHOIS Client

Data Structures

struct  lws_whois_results
 
struct  lws_whois_args
 

Macros

#define lws_whois_query(_a)
 

Typedefs

typedef void(* lws_whois_cb_t) (void *opaque, const struct lws_whois_results *res)
 

Detailed Description

WHOIS Client APIs


Data Structure Documentation

◆ lws_whois_results

struct lws_whois_results

Definition at line 30 of file lws-whois.h.

+ Collaboration diagram for lws_whois_results:
Data Fields
lws_usec_t creation_date
lws_usec_t expiry_date
lws_usec_t updated_date
char nameservers[256]
char dnssec[64]
char ds_data[512]

◆ lws_whois_args

struct lws_whois_args

Definition at line 41 of file lws-whois.h.

+ Collaboration diagram for lws_whois_args:
Data Fields
struct lws_context * context

The lws context to run the query in

const char * domain

The domain name to query

const char * server

Optional: The WHOIS server to query directly. If NULL, recursive lookup starting from whois.iana.org is performed.

lws_whois_cb_t cb

Callback to receive results. Called once when query completes or fails.

void * opaque

User-supplied pointer passed to the callback

Macro Definition Documentation

◆ lws_whois_query

#define lws_whois_query ( _a)

#include <include/libwebsockets/lws-whois.h>

Value:
(1)

lws_whois_query() - Trigger a WHOIS query for a domain

Parameters
argsstruct containing query parameters

Returns 0 if the query was successfully initiated, or nonzero if failed. The results are delivered asynchronously via the callback in args.

Definition at line 67 of file lws-whois.h.

Typedef Documentation

◆ lws_whois_cb_t

typedef void(* lws_whois_cb_t) (void *opaque, const struct lws_whois_results *res)

#include <include/libwebsockets/lws-whois.h>

Definition at line 39 of file lws-whois.h.