summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkoichik <koichik@improvement.jp>2011-12-16 18:20:27 +0900
committerkoichik <koichik@improvement.jp>2011-12-17 00:32:29 +0900
commitc744e925dfdd94f93e26c35e36334efe302bac73 (patch)
treeb9e38c516098bef407a01d5ac5353b89940ad61e
parent4b123f9ca22ee2622eb32233cb1d07af21e33826 (diff)
downloadnode-c744e925dfdd94f93e26c35e36334efe302bac73.tar.gz
doc: correct http.Server.listen()
Fixes #2325.
-rw-r--r--doc/api/http.markdown10
1 files changed, 6 insertions, 4 deletions
diff --git a/doc/api/http.markdown b/doc/api/http.markdown
index 8ed79ebc1..330ea2771 100644
--- a/doc/api/http.markdown
+++ b/doc/api/http.markdown
@@ -103,16 +103,18 @@ IPv4 address (`INADDR_ANY`).
To listen to a unix socket, supply a filename instead of port and hostname.
-This function is asynchronous. The last parameter `callback` will be called
-when the server has been bound to the port.
+This function is asynchronous. The last parameter `callback` will be added as
+a listener for the ['listening'](net.html#event_listening_) event.
+See also [net.Server.listen()](net.html#server.listen).
### server.listen(path, [callback])
Start a UNIX socket server listening for connections on the given `path`.
-This function is asynchronous. The last parameter `callback` will be called
-when the server has been bound.
+This function is asynchronous. The last parameter `callback` will be added as
+a listener for the ['listening'](net.html#event_listening_) event.
+See also [net.Server.listen()](net.html#server.listen).
### server.close()