projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60de863
)
Add a note in the API docs about binding to ports and using strings.
author
Tim Caswell
<tim@creationix.com>
Mon, 19 Apr 2010 13:18:16 +0000
(08:18 -0500)
committer
Ryan Dahl
<ry@tinyclouds.org>
Mon, 19 Apr 2010 22:52:51 +0000
(15:52 -0700)
doc/api.markdown
patch
|
blob
|
history
diff --git
a/doc/api.markdown
b/doc/api.markdown
index
2f1abed
..
274d8f6
100644
(file)
--- a/
doc/api.markdown
+++ b/
doc/api.markdown
@@
-1485,6
+1485,8
@@
address.
To listen to a unix socket, supply a filename instead of port and hostname.
+**If you give a port number as a string, the system will interpret it as a filename in the current directory and create a unix socket.**
+
This function is asynchronous. `listening` will be emitted when the server
is ready to accept connections.