Skip to content
Myr

Unix domain socket docs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent f3803c4 · Browse files · 3 files+66 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+66 added−1 removed

  • other:+66 added−1 removed

3 files+66 added−1 removed

modified:docs/guide.1+33 added
717 unmodified lines
718.719.fi720.721.IP "" 0722.723.P724The \fIport\fR argument may also be a string representing the path to a unix domain socket:725.726.IP "" 4727.728.nf729730app\.listen(\'/tmp/express\.sock\');731.732.fi733.734.IP "" 0735.736.P737Then try it out:738.739.IP "" 4740.741.nf742743$ telnet /tmp/express\.sock744GET / HTTP/1\.1745746HTTP/1\.1 200 OK747Content\-Type: text/plain748Content\-Length: 11749750Hello World751.752.fi753.754.IP "" 0755
modified:docs/guide.html+17 added
688 unmodified lines
689app.listen(3000);690app.listen(3000, 'n.n.n.n');691</code></pre>692693<p>The <em>port</em> argument may also be a string representing the path to a unix domain socket:</p>694695<pre><code>app.listen('/tmp/express.sock');696</code></pre>697698<p>Then try it out:</p>699700<pre><code>$ telnet /tmp/express.sock701GET / HTTP/1.1702703HTTP/1.1 200 OK704Content-Type: text/plain705Content-Length: 11706707Hello World708</code></pre>709710</div>711 </div>712 </div>713 </body>
1 unmodified line
modified:docs/guide.md+16 added-1 removed
435 unmodified lines
436connections will be accepted via _INADDR_ANY_.437438 app.listen();439 app.listen(3000);440 app.listen(3000, 'n.n.n.n');440 app.listen(3000, 'n.n.n.n');441442The _port_ argument may also be a string representing the path to a unix domain socket:443444 app.listen('/tmp/express.sock');445446Then try it out:447448 $ telnet /tmp/express.sock449 GET / HTTP/1.1450451 HTTP/1.1 200 OK452 Content-Type: text/plain453 Content-Length: 11454 455 Hello World