summaryrefslogtreecommitdiff
path: root/src/SocketCore.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-08-30 12:25:04 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-08-30 12:25:04 +0000
commitd182b380c244a3e4d966b04bbe89ccb9783ffa52 (patch)
treef920bcf1c29290d4fc8e14394ebc4d97782702a9 /src/SocketCore.h
parentbe10231175cfaaf531727aaf5d90e49c44e29112 (diff)
2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
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
Diffstat (limited to 'src/SocketCore.h')
-rw-r--r--src/SocketCore.h3
1 files changed, 2 insertions, 1 deletions
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.