| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -109,7 +109,7 @@ The last parameter `callback` will be added as a listener for the | |||
| 109 | 109 | [`'listening'`][] event. | |
| 110 | 110 | ||
| 111 | 111 | The parameter `backlog` behaves the same as in | |
| 112 | - [`server.listen(port, \[host\], \[backlog\], \[callback\])`][]. | ||
| 112 | + [`server.listen(port[, hostname][, backlog][, callback])`][`server.listen(port, host, backlog, callback)`]. | ||
| 113 | 113 | ||
| 114 | 114 | ### server.listen(options[, callback]) | |
| 115 | 115 | ||
@@ -123,8 +123,8 @@ The parameter `backlog` behaves the same as in | |||
| 123 | 123 | ||
| 124 | 124 | The `port`, `host`, and `backlog` properties of `options`, as well as the | |
| 125 | 125 | optional callback function, behave as they do on a call to | |
| 126 | - [`server.listen(port, \[host\], \[backlog\], \[callback\])`][]. Alternatively, | ||
| 127 | - the `path` option can be used to specify a UNIX socket. | ||
| 126 | + [`server.listen(port[, hostname][, backlog][, callback])`][`server.listen(port, host, backlog, callback)`]. | ||
| 127 | + Alternatively, the `path` option can be used to specify a UNIX socket. | ||
| 128 | 128 | ||
| 129 | 129 | If `exclusive` is `false` (default), then cluster workers will use the same | |
| 130 | 130 | underlying handle, allowing connection handling duties to be shared. When | |
@@ -169,7 +169,7 @@ double-backslashes, such as: | |||
| 169 | 169 | path.join('\\\\?\\pipe', process.cwd(), 'myctl')) | |
| 170 | 170 | ||
| 171 | 171 | The parameter `backlog` behaves the same as in | |
| 172 | - [`server.listen(port, \[host\], \[backlog\], \[callback\])`][]. | ||
| 172 | + [`server.listen(port[, hostname][, backlog][, callback])`][`server.listen(port, host, backlog, callback)`]. | ||
| 173 | 173 | ||
| 174 | 174 | ### server.listen(port[, hostname][, backlog][, callback]) | |
| 175 | 175 | ||
@@ -394,7 +394,7 @@ The `connectListener` parameter will be added as a listener for the | |||
| 394 | 394 | ### socket.connect(path[, connectListener]) | |
| 395 | 395 | ### socket.connect(port[, host][, connectListener]) | |
| 396 | 396 | ||
| 397 | - As [`socket.connect(options\[, connectListener\])`][], | ||
| 397 | + As [`socket.connect(options\[, connectListener\])`][`socket.connect(options, connectListener)`], | ||
| 398 | 398 | with options either as either `{port: port, host: host}` or `{path: path}`. | |
| 399 | 399 | ||
| 400 | 400 | ### socket.destroy() | |
@@ -725,8 +725,8 @@ Returns true if input is a version 6 IP address, otherwise returns false. | |||
| 725 | 725 | [`pause()`]: #net_socket_pause | |
| 726 | 726 | [`resume()`]: #net_socket_resume | |
| 727 | 727 | [`server.getConnections()`]: #net_server_getconnections_callback | |
| 728 | - [`server.listen(port, \[host\], \[backlog\], \[callback\])`]: #net_server_listen_port_hostname_backlog_callback | ||
| 729 | - [`socket.connect(options\[, connectListener\])`]: #net_socket_connect_options_connectlistener | ||
| 728 | + [`server.listen(port, host, backlog, callback)`]: #net_server_listen_port_hostname_backlog_callback | ||
| 729 | + [`socket.connect(options, connectListener)`]: #net_socket_connect_options_connectlistener | ||
| 730 | 730 | [`socket.connect`]: #net_socket_connect_options_connectlistener | |
| 731 | 731 | [`socket.setTimeout()`]: #net_socket_settimeout_timeout_callback | |
| 732 | 732 | [`stream.setEncoding()`]: stream.html#stream_readable_setencoding_encoding | |
| Back | FazBrowse Home | New Git URL |
0 commit comments