Пример #1
0
 /// <summary>
 /// <p>Construct a new socket object.
 /// </p>
 /// <p><code>options</code> is an object with the following defaults:
 /// </p>
 /// <pre><code>{ fd: null
 /// type: null
 /// allowHalfOpen: false
 /// }</code></pre>
 /// <p><code>fd</code> allows you to specify the existing file descriptor of socket. <code>type</code>
 /// specified underlying protocol. It can be <code>&#39;tcp4&#39;</code>, <code>&#39;tcp6&#39;</code>, or <code>&#39;unix&#39;</code>.
 /// About <code>allowHalfOpen</code>, refer to <code>createServer()</code> and <code>&#39;end&#39;</code> event.
 /// </p>
 /// </summary>
 public Socket(SocketOptions options)
 {
 }
Пример #2
0
 /// <summary>
 /// <p>Construct a new socket object.
 /// </p>
 /// <p><code>options</code> is an object with the following defaults:
 /// </p>
 /// <pre><code>{ fd: null
 /// type: null
 /// allowHalfOpen: false
 /// }</code></pre>
 /// <p><code>fd</code> allows you to specify the existing file descriptor of socket. <code>type</code>
 /// specified underlying protocol. It can be <code>&#39;tcp4&#39;</code>, <code>&#39;tcp6&#39;</code>, or <code>&#39;unix&#39;</code>.
 /// About <code>allowHalfOpen</code>, refer to <code>createServer()</code> and <code>&#39;end&#39;</code> event.
 /// </p>
 /// </summary>
 public Socket(SocketOptions options) { }