From d182b380c244a3e4d966b04bbe89ccb9783ffa52 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 30 Aug 2009 12:25:04 +0000 Subject: 2009-08-30 Tatsuhiro Tsujikawa Added --xml-rpc-listen-all option. If true is given to this option, aria2 listens incoming XML-RPC requests on all network interfaces. If false is given, listens only on local loopback interface. The default value is false. * src/HttpListenCommand.cc * src/OptionHandlerFactory.cc * src/SocketCore.cc * src/SocketCore.h * src/prefs.cc * src/prefs.h * src/usage_text.h --- src/SocketCore.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/SocketCore.h') diff --git a/src/SocketCore.h b/src/SocketCore.h index 4cdaa473..896c1f63 100644 --- a/src/SocketCore.h +++ b/src/SocketCore.h @@ -145,10 +145,11 @@ public: /** * Creates a socket and bind it with locahost's address and port. + * flags is set to struct addrinfo's ai_flags. * @param port port to listen. If 0 is specified, os automaticaly * choose avaiable port. */ - void bind(uint16_t port); + void bind(uint16_t port, int flags = AI_PASSIVE); /** * Listens form connection on it. -- cgit