From: Andre Noll Date: Sat, 17 Mar 2018 01:11:01 +0000 (+0100) Subject: server: Add --http-listen-address and --dccp-listen-address. X-Git-Tag: v0.6.2~3^2 X-Git-Url: http://git.tuebingen.mpg.de/?a=commitdiff_plain;h=4fbe16430b4776814128d7110682c69d1b047c57;hp=4fbe16430b4776814128d7110682c69d1b047c57;p=paraslash.git server: Add --http-listen-address and --dccp-listen-address. Currently the http and the dccp sender accept connections on all IP addresses. This commit makes it possible to configure the senders to listen only on the specified subset of addresses. To make this work, the sender_status structure has to be extended to store an array of file descriptors rather than just a single one. Several places need to iterate over all listening sockets of the sender. The new FOR_EACH_LISTEN_FD macro helps to avoid duplicating the corresponding loop. The status part of the sender command now prints the listening addresses instead of just on/off. This is why we also maintain the ascii representation of the listening addresses in the sender_status structure and introduce the format_url() helper to format host/port pairs. ---