]> err.no Git - varnish/commit
Rename open_tcp() to TCP_open() and modify it to open only one socket of
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 21 Aug 2006 17:26:11 +0000 (17:26 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 21 Aug 2006 17:26:11 +0000 (17:26 +0000)
commit98d5322a04a931e9fac2746bb7d2977294e76d5e
treeeb2abc99c08c55e9b8425563f744436d5e348abd
parentef27e68e77aa6ff8d6906b8cd29d2b843319f2fb
Rename open_tcp() to TCP_open() and modify it to open only one socket of
the appropriate type for the address that was passed in.

Introduce TCP_parse(), which extracts an address and port from a string of
the form "hostname:port", "i.p.v.4:port" or "[i:p:v:6]:port" (where "port"
can be either a decimal number or a service name).

Use TCP_parse() to parse the argument to -a (listen address), -b (backend
address) and -T (telnet address).  Eliminate -p (listen port).

While there, rename a bunch of "fooflag" variables which aren't flags to
"foo_arg".

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@872 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/common.h
varnish-cache/bin/varnishd/mgt.h
varnish-cache/bin/varnishd/mgt_child.c
varnish-cache/bin/varnishd/mgt_cli.c
varnish-cache/bin/varnishd/mgt_vcc.c
varnish-cache/bin/varnishd/tcp.c
varnish-cache/bin/varnishd/varnishd.c