Under construction...
This section explains how to use the high-level API for SRV records.
Such API is the RULI's standard interface for querying SRV resource records. It works in an event-driven fashion, based on function callback registration.
This document is supposed to provide sufficient information about the high-level, standard API. If anything is not clear enough, please post the issue to RULI's support site at Savannah.
sample/srvsearch.c
See below how to use such sample program in the command line:
$ echo _smtp._tcp.vanrein.org | ./srvsearch _smtp._tcp.vanrein.org target=phantom.vanrein.org. port=25 addresses=212.120.81.221 _smtp._tcp.vanrein.org target=sitemail.everyone.net. port=25 addresses=216.200.145.35 $
#include <oop.h> #include <ruli.h>
And link the program against liboop and libruli, by using the following linker options:
-loop -lruli