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.
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=22.214.171.124 _smtp._tcp.vanrein.org target=sitemail.everyone.net. port=25 addresses=126.96.36.199 $
#include <oop.h> #include <ruli.h>
And link the program against liboop and libruli, by using the following linker options: