* common-src/bsdtcp-security.c: Retry all IPs on connection refused.
* common-src/security-util.h (struct sec_handle): Add res, next_res,
  connect_callback, connect_arg, src_ip and port.
* common-src/stream.c (stream_client_addr): New function to open a
  connection to a 'struct addrinfo'.
* common-src/stream.h (stream_client_addr): Add prototype.


git-svn-id: https://svn.code.sf.net/p/amanda/code/amanda/trunk@5708 a8d146d6-cc15-0410-8900-af154a0219e0