]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Add an example for flags 593/head
authorPhilipp Hagemeister <phihag@phihag.de>
Tue, 4 Sep 2012 15:04:47 +0000 (17:04 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Tue, 4 Sep 2012 15:04:47 +0000 (17:04 +0200)
tornado/netutil.py

index 816ac70a474d18477f81af1c8cff8bb08e7603f6..cf9bc9c41f20862e417ded0c089b35d0e0801835 100644 (file)
@@ -254,7 +254,8 @@ def bind_sockets(port, address=None, family=socket.AF_UNSPEC, backlog=128, flags
     The ``backlog`` argument has the same meaning as for
     ``socket.listen()``.
 
-    ``flags`` is a bitmask of AI_* flags to ``getaddrinfo``.
+    ``flags`` is a bitmask of AI_* flags to ``getaddrinfo``, like
+    ``socket.AI_PASSIVE | socket.AI_NUMERICHOST``.
     """
     sockets = []
     if address == "":