]> git.tuebingen.mpg.de Git - paraslash.git/commit
net: host/port string convention
authorGerrit Renker <grenker@cscs.ch>
Sun, 13 Jun 2010 09:30:46 +0000 (11:30 +0200)
committerAndre Noll <maan@systemlinux.org>
Tue, 22 Jun 2010 23:16:43 +0000 (01:16 +0200)
commitf10742c3fdc05a3ff719ad7e01eacfd5e8c0dae0
tree63f6bfacbc1ed0dd138872a003131935c632f527
parent18f8523446329aaabbcdd14ec2be6fc27802ef4f
net: host/port string convention

This updates the implementation of host_and_port() in such a way that its
output can again be used as input of parse_url():

 * the separator for host and port is now ':' instead of '#';
 * port numbers (services) are now always represented as numbers
   (reverting an earlier change);
 * IPv6 addresses are enclosed in square brackets.

This convention makes it easier to copy&paste output from paraslash commands
(including scripting), and to store target information in a format that is
easy to resolve/reuse at a later stage.
net.c