chiark / gitweb /
pkstream/pkstream.c: Rearrange socket setup, particularly `parseaddr'.
* Have `parseaddr' fill in a socket address structure directly.
* Change the interface to pass in either separate host and
service (does this remind you of anything?) names, or a single
combined string to be parsed apart, as indicated by a new flag
`paf_parse'.
* Have `main' keep track of the various host and service name strings
and then sort everything out at the end, rather than exercising the
resolver during option parsing. Take advantage of this by
diagnosing incompatible option combinations.
* To make this work, upgrade `cw.peer' to be full socket address.
* Factor out socket-address initialization, and initialize the
structures on demand rather than in advance.