sg 5bd25ccc15 * Fixed hostname parsing when the protocol and the leading "//" are missing 22 gadi atpakaļ
..
Makefile c8a141e894 + uriparser unit added. Header/Footer blocks added 22 gadi atpakaļ
Makefile.fpc c8a141e894 + uriparser unit added. Header/Footer blocks added 22 gadi atpakaļ
README c8a141e894 + uriparser unit added. Header/Footer blocks added 22 gadi atpakaļ
hs.inc 3eaf4dbad2 + Initial implementation 22 gadi atpakaļ
hsh.inc 3eaf4dbad2 + Initial implementation 22 gadi atpakaļ
netdb.pp c8a141e894 + uriparser unit added. Header/Footer blocks added 22 gadi atpakaļ
testdns.pp c8a141e894 + uriparser unit added. Header/Footer blocks added 22 gadi atpakaļ
testhst.pp c8a141e894 + uriparser unit added. Header/Footer blocks added 22 gadi atpakaļ
testnet.pp c8a141e894 + uriparser unit added. Header/Footer blocks added 22 gadi atpakaļ
testsvc.pp c8a141e894 + uriparser unit added. Header/Footer blocks added 22 gadi atpakaļ
testuri.pp c8a141e894 + uriparser unit added. Header/Footer blocks added 22 gadi atpakaļ
uriparser.pp 5bd25ccc15 * Fixed hostname parsing when the protocol and the leading "//" are missing 22 gadi atpakaļ

README

This directory contains a pure-pascal netdb implementation:
It is written mainly to be able to implement network applications that
do hostname lookups independent of the C library.

The uriparser unit contains a parser for URI strings: It decomposes the URI
in its various elements. The opposite can also be done: from various
elements create a complete URI

This provides the equivalent of the Inet unit, but the implementation is
written completely in pascal. It parses the hosts,services and networks
files just as the C library does (it should, anyway).

The DNS routines also do a DNS lookup and parse /etc/resolv.conf
The 'domain' and 'search' entries in this file are parsed, but ignored.
Only the 'nameserver' entries are used at the moment.

The various test programs show how to use this.

Enjoy!

Michael.