From ee71e1ff6033ad1eb2385f11d4f3678259b8397b Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Wed, 25 Jul 2007 02:46:52 +0000 Subject: Switch over to using getaddrinfo for TCP clients & servers to enable IPv6 --- bus/dbus-daemon.1.in | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'bus') diff --git a/bus/dbus-daemon.1.in b/bus/dbus-daemon.1.in index d4d816f4..63d97183 100644 --- a/bus/dbus-daemon.1.in +++ b/bus/dbus-daemon.1.in @@ -220,6 +220,15 @@ started services or other interested parties with the last address given in first. That is, apps will try to connect to the last address first. +.PP +tcp sockets can accept IPv4 addresses, IPv6 addresses or hostnames. +If a hostname resolves to multiple addresses, the server will bind +to all of them. The family=ipv4 or family=ipv6 options can be used +to force it to bind to a subset of addresses + +.PP +Example: tcp:host=localhost,port=0,family=ipv4 + .PP A special case is using a port number of zero (or omitting the port), which means to choose an available port selected by the operating @@ -231,11 +240,15 @@ reports its own address, such as when DBUS_SESSION_BUS_ADDRESS is set. Example: tcp:host=localhost,port=0 .PP -tcp addresses also allow an all_interfaces=true option, which will -cause the bus to listen on all local address (INADDR_ANY) and not only -the specified host. However, the specified host will still be used as -the reported address of the server. The specified host should be a -valid name of the local machine or weird stuff will happen. +tcp addresses also allow a bind=hostname option, which will override +the host option specifying what address to bind to, without changing +the address reported by the bus. The bind option can also take a +special name '*' to cause the bus to listen on all local address +(INADDR_ANY). The specified host should be a valid name of the local +machine or weird stuff will happen. + +.PP +Example: tcp:host=localhost,bind=*,port=0 .TP .I "" -- cgit