]> git.tuebingen.mpg.de Git - paraslash.git/commit
Auxiliary functions to parse and validate parts of URIs.
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Sat, 28 Feb 2009 12:40:01 +0000 (13:40 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 28 Feb 2009 12:40:01 +0000 (13:40 +0100)
commit0f1d8e4e182a48d366f06633b797a5dfbbfea407
treefcc8ca725c545b24837924f9d5bf6957f3a11c25
parentc09999a00aa049418b7ea41428ee5aedfcd1e889
Auxiliary functions to parse and validate parts of URIs.

To support URI syntax in the manner of RFC 3986, this adds a self-contained set
of functions to parse (parts of) URIs and to validate such parts using basic
syntax checks.

To avoid blocking while resolving DNS strings, strings that do not have the
characteristics of native IPv4/v6 address strings always pass; a wrong hostname
will then be detected later when connecting.

Note: strictly speaking, this does not deal with URIs, since the 'scheme' part
      is missing and only the "locator" part is parsed. It is possible to extend
      this later, using something like dccp://host[:port], http://host[:port],
      or udp://host[:port] to specify the transport protocols of paraslash.
net.c
net.h