/// <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>'tcp4'</code>, <code>'tcp6'</code>, or <code>'unix'</code>. /// About <code>allowHalfOpen</code>, refer to <code>createServer()</code> and <code>'end'</code> event. /// </p> /// </summary> public Socket(SocketOptions options) { }
/// <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>'tcp4'</code>, <code>'tcp6'</code>, or <code>'unix'</code>. /// About <code>allowHalfOpen</code>, refer to <code>createServer()</code> and <code>'end'</code> event. /// </p> /// </summary> public Socket(SocketOptions options) { }