Bind local ports after all command line options have been parsed
commitb301973c65453d589edcfde1ca95d01d10e23664
authorKevin Cernekee <cernekee@gmail.com>
Mon, 26 Nov 2012 00:06:08 +0000 (25 16:06 -0800)
committerKevin Cernekee <cernekee@gmail.com>
Mon, 26 Nov 2012 00:48:47 +0000 (25 16:48 -0800)
tree9025eaef6183ab10de1123966985bffaa14ea69c
parentb0443b5ea32d3d14ff59663bdd91571f7d096e16
Bind local ports after all command line options have been parsed

Some command line options, such as "-g", may affect the behavior of the
bind() operation.  Construct a linked list of sockets to bind, then run
through them all after the getopt() loop is finished.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
README
contrib/ports/unix/proj/ocproxy/ocproxy.c