diff --git a/doc/api/net.md b/doc/api/net.md index 50ea9ab6c45bc3..c7f3ba56165fb3 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -135,6 +135,51 @@ added: v15.0.0 The list of rules added to the blocklist. +## Class: `net.SocketAddress` + +### `new net.SocketAddress([options])` + + +* `options` {Object} + * `address` {string} The network address as either an IPv4 or IPv6 string. + **Default**: `'127.0.0.1'` if `family` is `'ipv4'`; `'::'` if `family` is + `'ipv6'`. + * `family` {string} One of either `'ipv4'` or 'ipv6'`. **Default**: `'ipv4'`. + * `flowlabel` {number} An IPv6 flow-label used only if `family` is `'ipv6'`. + * `port` {number} An IP port. + +### `socketaddress.address` + + +* Type {string} + +### `socketaddress.family` + + +* Type {string} Either `'ipv4'` or `'ipv6'`. + +### `socketaddress.flowlabel` + + +* Type {number} + +### `socketaddress.port` + + +* Type {number} + ## Class: `net.Server`