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