RFC 3958:Domain-Based Application Service Location...
RFC-Ref

Pseudocode


Click on the red underlined text to get to the source

... Appendix A. Pseudo-Pseudocode for S-NAPTR ...
... client supports 1 protocol for a particular application service, the following pseudocode outlines the expected process to find the first (best) target for the client ...
... The pseudocode in Appendix A is crafted to find the first, most preferred host-port ...
... tree. The pseudocode above does not permit retries -- once complete, it sheds all context of where in the S-NAPTR ...
... DNS lookup and RRset processing described in the pseudocode and continue the S- NAPTR processing if the application code fails to connect to a ...



Google
Web
RFC-Ref