~ubuntu-branches/ubuntu/trusty/nodejs/trusty-proposed

« back to all changes in this revision

Viewing changes to doc/api/net.html

  • Committer: Package Import Robot
  • Author(s): Jérémy Lal
  • Date: 2013-12-12 23:04:07 UTC
  • mfrom: (1.1.30)
  • Revision ID: package-import@ubuntu.com-20131212230407-xfa6gka4c6oatsx1
Tags: 0.10.23~dfsg1-1
* Upstream update.
* Refresh patches, remove 1005 patch, applied upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
<html lang="en">
3
3
<head>
4
4
  <meta charset="utf-8">
5
 
  <title>net Node.js v0.10.22 Manual &amp; Documentation</title>
 
5
  <title>net Node.js v0.10.23 Manual &amp; Documentation</title>
6
6
  <link rel="stylesheet" href="assets/style.css">
7
7
  <link rel="stylesheet" href="assets/sh.css">
8
8
  <link rel="canonical" href="http://nodejs.org/api/net.html">
31
31
 
32
32
        <div id="column1" class="interior">
33
33
          <header>
34
 
            <h1>Node.js v0.10.22 Manual &amp; Documentation</h1>
 
34
            <h1>Node.js v0.10.23 Manual &amp; Documentation</h1>
35
35
            <div id="gtoc">
36
36
              <p>
37
37
                <a href="index.html" name="toc">Index</a> |
218
218
changed to
219
219
 
220
220
</p>
221
 
<pre><code>var client = net.connect({path: &#39;/tmp/echo.sock&#39;},</code></pre>
 
221
<pre><code>var client = net.connect({path: &#39;/tmp/echo.sock&#39;});</code></pre>
222
222
<h2>net.connect(port, [host], [connectListener])<span><a class="mark" href="#net_net_connect_port_host_connectlistener" id="net_net_connect_port_host_connectlistener">#</a></span></h2>
223
223
<h2>net.createConnection(port, [host], [connectListener])<span><a class="mark" href="#net_net_createconnection_port_host_connectlistener" id="net_net_createconnection_port_host_connectlistener">#</a></span></h2>
224
224
<p>Creates a TCP connection to <code>port</code> on <code>host</code>. If <code>host</code> is omitted,
418
418
 
419
419
</p>
420
420
<pre><code>{ fd: null
421
 
  type: null
422
 
  allowHalfOpen: false
 
421
  allowHalfOpen: false,
 
422
  readable: false,
 
423
  writable: false
423
424
}</code></pre>
424
 
<p><code>fd</code> allows you to specify the existing file descriptor of socket. <code>type</code>
425
 
specified underlying protocol. It can be <code>&#39;tcp4&#39;</code>, <code>&#39;tcp6&#39;</code>, or <code>&#39;unix&#39;</code>.
 
425
<p><code>fd</code> allows you to specify the existing file descriptor of socket.
 
426
Set <code>readable</code> and/or <code>writable</code> to <code>true</code> to allow reads and/or writes on this
 
427
socket (NOTE: Works only when <code>fd</code> is passed).
426
428
About <code>allowHalfOpen</code>, refer to <code>createServer()</code> and <code>&#39;end&#39;</code> event.
427
429
 
428
430
</p>
695
697
            <li><a href="http://twitter.com/nodejs" class="twitter">@nodejs</a></li>
696
698
        </ul>
697
699
 
698
 
        <p>Copyright <a href="http://joyent.com/">Joyent, Inc</a>, Node.js is a <a href="/trademark-policy.pdf">trademark</a> of Joyent, Inc. View <a href="https://raw.github.com/joyent/node/v0.10.22/LICENSE">license</a>.</p>
 
700
        <p>Copyright <a href="http://joyent.com/">Joyent, Inc</a>, Node.js is a <a href="/trademark-policy.pdf">trademark</a> of Joyent, Inc. View <a href="https://raw.github.com/joyent/node/v0.10.23/LICENSE">license</a>.</p>
699
701
    </div>
700
702
 
701
703
  <script src="../sh_main.js"></script>