@@ -37,7 +37,7 @@ Tests strict equality, as determined by the strict equality operator ( `===` )

Tests strict non-equality, as determined by the strict not equal operator ( `!==` )

## assert.throws(block[, error]\[, message])
## assert.throws(block[, error][, message])

Expects `block` to throw an error. `error` can be constructor, `RegExp` or
validation function.
@@ -162,7 +162,7 @@ buffer object. It does not change when the contents of the buffer are changed.
// 1234
// 1234

### buf.write(string[, offset]\[, length]\[, encoding])
### buf.write(string[, offset][, length][, encoding])

* `string` String - data to be written to buffer
* `offset` Number, Optional, Default: 0
@@ -181,7 +181,7 @@ The method will not write partial characters.
console.log(len + " bytes: " + buf.toString('utf8', 0, len));


### buf.toString([encoding]\[, start]\[, end])
### buf.toString([encoding][, start][, end])

* `encoding` String, Optional, Default: 'utf8'
* `start` Number, Optional, Default: 0
@@ -252,7 +252,7 @@ Returns a number indicating whether `this` comes before or after or is
the same as the `otherBuffer` in sort order.


### buf.copy(targetBuffer[, targetStart]\[, sourceStart]\[, sourceEnd])
### buf.copy(targetBuffer[, targetStart][, sourceStart][, sourceEnd])

* `targetBuffer` Buffer object - Buffer to copy into
* `targetStart` Number, Optional, Default: 0
@@ -283,7 +283,7 @@ into `buf2`, starting at the 8th byte in `buf2`.
// !!!!!!!!qrst!!!!!!!!!!!!!


### buf.slice([start]\[, end])
### buf.slice([start][, end])

* `start` Number, Optional, Default: 0
* `end` Number, Optional, Default: `buffer.length`
@@ -703,7 +703,7 @@ Example:
// <Buffer 43 eb d5 b7 dd f9 5f d7>
// <Buffer d7 5f f9 dd b7 d5 eb 43>

### buf.fill(value[, offset]\[, end])
### buf.fill(value[, offset][, end])

* `value`
* `offset` Number, Optional
@@ -303,7 +303,7 @@ child process has any open IPC channels with the parent (i.e `fork()`).
These methods follow the common async programming patterns (accepting a
callback or returning an EventEmitter).

### child_process.spawn(command[, args]\[, options])
### child_process.spawn(command[, args][, options])

* `command` {String} The command to run
* `args` {Array} List of string arguments
@@ -531,7 +531,7 @@ amount of data allowed on stdout or stderr - if this value is exceeded then
the child process is killed.


### child_process.execFile(file[, args]\[, options]\[, callback])
### child_process.execFile(file[, args][, options][, callback])

* `file` {String} The filename of the program to run
* `args` {Array} List of string arguments
@@ -555,7 +555,7 @@ subshell but rather the specified file directly. This makes it slightly
leaner than `child_process.exec`. It has the same options.


### child_process.fork(modulePath[, args]\[, options])
### child_process.fork(modulePath[, args][, options])

* `modulePath` {String} The module to run in the child
* `args` {Array} List of string arguments
@@ -598,7 +598,7 @@ Blocking calls like these are mostly useful for simplifying general purpose
scripting tasks and for simplifying the loading/processing of application
configuration at startup.

### child_process.spawnSync(command[, args]\[, options])
### child_process.spawnSync(command[, args][, options])

* `command` {String} The command to run
* `args` {Array} List of string arguments
@@ -629,7 +629,7 @@ until the process has completely exited. That is to say, if the process handles
the `SIGTERM` signal and doesn't exit, your process will wait until the child
process has exited.

### child_process.execFileSync(command[, args]\[, options])
### child_process.execFileSync(command[, args][, options])

* `command` {String} The command to run
* `args` {Array} List of string arguments
@@ -22,7 +22,7 @@ In daily use, the blocking/non-blocking dichotomy is not something you
should worry about unless you log huge amounts of data.


## console.log([data]\[, ...])
## console.log([data][, ...])

Prints to stdout with newline. This function can take multiple arguments in a
`printf()`-like way. Example:
@@ -34,15 +34,15 @@ Prints to stdout with newline. This function can take multiple arguments in a
If formatting elements are not found in the first string then `util.inspect`
is used on each argument. See [util.format()][] for more information.

## console.info([data]\[, ...])
## console.info([data][, ...])

Same as `console.log`.

## console.error([data]\[, ...])
## console.error([data][, ...])

Same as `console.log` but prints to stderr.

## console.warn([data]\[, ...])
## console.warn([data][, ...])

Same as `console.error`.

@@ -82,7 +82,7 @@ Finish timer, record output. Example:
Print to stderr `'Trace :'`, followed by the formatted message and stack trace
to the current position.

## console.assert(value[, message]\[, ...])
## console.assert(value[, message][, ...])

Similar to [assert.ok()][], but the error message is formatted as
`util.format(message...)`.
@@ -214,7 +214,7 @@ writable. The written plain text data is used to produce the
encrypted data on the readable side. The legacy `update` and `final`
methods are also supported.

### cipher.update(data[, input_encoding]\[, output_encoding])
### cipher.update(data[, input_encoding][, output_encoding])

Updates the cipher with `data`, the encoding of which is given in
`input_encoding` and can be `'utf8'`, `'ascii'` or `'binary'`. If no
@@ -280,7 +280,7 @@ writable. The written enciphered data is used to produce the
plain-text data on the the readable side. The legacy `update` and
`final` methods are also supported.

### decipher.update(data[, input_encoding]\[, output_encoding])
### decipher.update(data[, input_encoding][, output_encoding])

Updates the decipher with `data`, which is encoded in `'binary'`,
`'base64'` or `'hex'`. If no encoding is provided, then a buffer is
@@ -408,7 +408,7 @@ Creates a Diffie-Hellman key exchange object and generates a prime of
`prime_length` bits and using an optional specific numeric `generator`.
If no `generator` is specified, then `2` is used.

## crypto.createDiffieHellman(prime[, prime_encoding]\[, generator]\[, generator_encoding])
## crypto.createDiffieHellman(prime[, prime_encoding][, generator][, generator_encoding])

Creates a Diffie-Hellman key exchange object using the supplied `prime` and an
optional specific `generator`.
@@ -442,7 +442,7 @@ the public key in the specified encoding. This key should be
transferred to the other party. Encoding can be `'binary'`, `'hex'`,
or `'base64'`. If no encoding is provided, then a buffer is returned.

### diffieHellman.computeSecret(other_public_key[, input_encoding]\[, output_encoding])
### diffieHellman.computeSecret(other_public_key[, input_encoding][, output_encoding])

Computes the shared secret using `other_public_key` as the other
party's public key and returns the computed shared secret. Supplied
@@ -541,7 +541,7 @@ Format specifies point encoding and can be `'compressed'`, `'uncompressed'`, or
Encoding can be `'binary'`, `'hex'`, or `'base64'`. If no encoding is provided,
then a buffer is returned.

### ECDH.computeSecret(other_public_key[, input_encoding]\[, output_encoding])
### ECDH.computeSecret(other_public_key[, input_encoding][, output_encoding])

Computes the shared secret using `other_public_key` as the other
party's public key and returns the computed shared secret. Supplied
@@ -22,13 +22,8 @@ You have to change it to this:


## dgram.createSocket(type[, callback])
## dgram.createSocket(options[, callback])

* `type` String. Either 'udp4' or 'udp6'
* `options` Object. Should contain a `type` property and could contain
`reuseAddr` property. `false` by default.
When `reuseAddr` is `true` - `socket.bind()` will reuse address, even if the
other process has already bound a socket on it.
* `callback` Function. Attached as a listener to `message` events.
Optional
* Returns: Socket object
@@ -38,9 +33,28 @@ and `udp6`.

Takes an optional callback which is added as a listener for `message` events.

Call `socket.bind` if you want to receive datagrams. `socket.bind()` will bind
to the "all interfaces" address on a random port (it does the right thing for
both `udp4` and `udp6` sockets). You can then retrieve the address and port
Call `socket.bind()` if you want to receive datagrams. `socket.bind()` will
bind to the "all interfaces" address on a random port (it does the right thing
for both `udp4` and `udp6` sockets). You can then retrieve the address and port
with `socket.address().address` and `socket.address().port`.

## dgram.createSocket(options[, callback])
* `options` Object
* `callback` Function. Attached as a listener to `message` events.
* Returns: Socket object

The `options` object should contain a `type` field of either `udp4` or `udp6`
and an optional boolean `reuseAddr` field.

When `reuseAddr` is true `socket.bind()` will reuse the address, even if
another process has already bound a socket on it. `reuseAddr` defaults to
`false`.

Takes an optional callback which is added as a listener for `message` events.

Call `socket.bind()` if you want to receive datagrams. `socket.bind()` will
bind to the "all interfaces" address on a random port (it does the right thing
for both `udp4` and `udp6` sockets). You can then retrieve the address and port
with `socket.address().address` and `socket.address().port`.

## Class: dgram.Socket
@@ -142,7 +156,7 @@ a packet might travel, and that generally sending a datagram greater than
the (receiver) `MTU` won't work (the packet gets silently dropped, without
informing the source that the data did not reach its intended recipient).

### socket.bind(port[, address]\[, callback])
### socket.bind(port[, address][, callback])

* `port` Integer
* `address` String, Optional
@@ -104,7 +104,7 @@ Returns an array of listeners for the specified event.
console.log(util.inspect(server.listeners('connection'))); // [ [Function] ]


### emitter.emit(event[, arg1]\[, arg2]\[, ...])
### emitter.emit(event[, arg1][, arg2][, ...])

Execute each of the listeners in order with the supplied arguments.

@@ -568,7 +568,7 @@ have effectively stopped watching `filename`.
Calling `fs.unwatchFile()` with a filename that is not being watched is a
no-op, not an error.

## fs.watch(filename[, options]\[, listener])
## fs.watch(filename[, options][, listener])

Stability: 2 - Unstable.

@@ -64,7 +64,7 @@ Returns a new web server object.
The `requestListener` is a function which is automatically
added to the `'request'` event.

## http.createClient([port]\[, host])
## http.createClient([port][, host])

This function is **deprecated**; please use [http.request()][] instead.
Constructs a new HTTP client. `port` and `host` refer to the server to be
@@ -160,7 +160,7 @@ If a client connection emits an 'error' event - it will forwarded here.
`socket` is the `net.Socket` object that the error originated from.


### server.listen(port[, hostname]\[, backlog]\[, callback])
### server.listen(port[, hostname][, backlog][, callback])

Begin accepting connections on the specified port and hostname. If the
hostname is omitted, the server will accept connections directed to any
@@ -275,7 +275,7 @@ After this event, no more events will be emitted on the response object.
Sends a HTTP/1.1 100 Continue message to the client, indicating that
the request body should be sent. See the ['checkContinue'][] event on `Server`.

### response.writeHead(statusCode[, statusMessage]\[, headers])
### response.writeHead(statusCode[, statusMessage][, headers])

Sends a response header to the request. The status code is a 3-digit HTTP
status code, like `404`. The last argument, `headers`, are the response headers.
@@ -433,7 +433,7 @@ emit trailers, with a list of the header fields in its value. E.g.,
response.end();


### response.end([data]\[, encoding])
### response.end([data][, encoding])

This method signals to the server that all of the response headers and body
have been sent; that server should consider this message complete.
@@ -878,7 +878,7 @@ The `encoding` argument is optional and only applies when `chunk` is a string.
Defaults to `'utf8'`.


### request.end([data]\[, encoding])
### request.end([data][, encoding])

Finishes sending the request. If any parts of the body are
unsent, it will flush them to the stream. If the request is
@@ -901,7 +901,7 @@ Once a socket is assigned to this request and is connected
Once a socket is assigned to this request and is connected
[socket.setNoDelay()][] will be called.

### request.setSocketKeepAlive([enable]\[, initialDelay])
### request.setSocketKeepAlive([enable][, initialDelay])

Once a socket is assigned to this request and is connected
[socket.setKeepAlive()][] will be called.
@@ -55,7 +55,7 @@ Or
}).listen(8000);


### server.listen(port[, host]\[, backlog]\[, callback])
### server.listen(port[, host][, backlog][, callback])
### server.listen(path[, callback])
### server.listen(handle[, callback])

@@ -6,7 +6,7 @@ The `net` module provides you with an asynchronous network wrapper. It contains
methods for creating both servers and clients (called streams). You can include
this module with `require('net');`

## net.createServer([options]\[, connectionListener])
## net.createServer([options][, connectionListener])

Creates a new TCP server. The `connectionListener` argument is
automatically set as a listener for the ['connection'][] event.
@@ -107,8 +107,8 @@ changed to

var client = net.connect({path: '/tmp/echo.sock'});

## net.connect(port[, host]\[, connectListener])
## net.createConnection(port[, host]\[, connectListener])
## net.connect(port[, host][, connectListener])
## net.createConnection(port[, host][, connectListener])

Creates a TCP connection to `port` on `host`. If `host` is omitted,
`'localhost'` will be assumed.
@@ -130,7 +130,7 @@ A factory method which returns a new ['net.Socket'](#net_class_net_socket).

This class is used to create a TCP or local server.

### server.listen(port[, host]\[, backlog]\[, callback])
### server.listen(port[, host][, backlog][, callback])

Begin accepting connections on the specified `port` and `host`. If the
`host` is omitted, the server will accept connections directed to any
@@ -352,7 +352,7 @@ Set `readable` and/or `writable` to `true` to allow reads and/or writes on this
socket (NOTE: Works only when `fd` is passed).
About `allowHalfOpen`, refer to `createServer()` and `'end'` event.

### socket.connect(port[, host]\[, connectListener])
### socket.connect(port[, host][, connectListener])
### socket.connect(path[, connectListener])

Opens the connection for a given socket. If `port` and `host` are given,
@@ -395,7 +395,7 @@ Users who experience large or growing `bufferSize` should attempt to
Set the encoding for the socket as a Readable Stream. See
[stream.setEncoding()][] for more information.

### socket.write(data[, encoding]\[, callback])
### socket.write(data[, encoding][, callback])

Sends data on the socket. The second parameter specifies the encoding in the
case of a string--it defaults to UTF8 encoding.
@@ -407,7 +407,7 @@ buffer. Returns `false` if all or part of the data was queued in user memory.
The optional `callback` parameter will be executed when the data is finally
written out - this may not be immediately.

### socket.end([data]\[, encoding])
### socket.end([data][, encoding])

Half-closes the socket. i.e., it sends a FIN packet. It is possible the
server will still send some data.
@@ -450,7 +450,7 @@ algorithm, they buffer data before sending it off. Setting `true` for
`noDelay` will immediately fire off data each time `socket.write()` is called.
`noDelay` defaults to `true`.

### socket.setKeepAlive([enable]\[, initialDelay])
### socket.setKeepAlive([enable][, initialDelay])

Enable/disable keep-alive functionality, and optionally set the initial
delay before the first keepalive probe is sent on an idle socket.
@@ -22,7 +22,7 @@ Example:
// returns
'/foo/bar/baz/asdf'

## path.join([path1]\[, path2]\[, ...])
## path.join([path1][, path2][, ...])

Join all arguments together and normalize the resulting path.