extern char* waku_dns_discovery(char* url, char* nameserver, int timeoutMs)
Returns a list of multiaddress given a url to a DNS discoverable ENR tree
Parameters
char* url: URL containing a discoverable ENR tree
char* nameserver: The nameserver to resolve the ENR tree url.
If NULL or empty, it will automatically use the default system dns.
int timeoutMs: Timeout value in milliseconds to execute the call.
If the function execution takes longer than this value,
the execution will be canceled and an error returned.
Use 0 for no timeout.
Returns
A JsonResponse.
If the execution is successful, the result field contains an array with multiaddresses.
An error message otherwise.
DNS Discovery
extern char* waku_dns_discovery(char* url, char* nameserver, int timeoutMs)
Returns a list of multiaddress given a url to a DNS discoverable ENR tree Parameters
char* url
: URL containing a discoverable ENR treechar* nameserver
: The nameserver to resolve the ENR tree url. IfNULL
or empty, it will automatically use the default system dns.int timeoutMs
: Timeout value in milliseconds to execute the call. If the function execution takes longer than this value, the execution will be canceled and an error returned. Use0
for no timeout. Returns AJsonResponse
. If the execution is successful, theresult
field contains an array with multiaddresses. Anerror
message otherwise.