new net.SocketAddress([options])
-
options
<Object>-
address
<string> 作为 IPv4 或 IPv6 字符串的网络地址。默认值:'127.0.0.1'
如果family
是'ipv4'
;'::'
如果family
是'ipv6'
。¥
address
<string> The network address as either an IPv4 or IPv6 string. Default:'127.0.0.1'
iffamily
is'ipv4'
;'::'
iffamily
is'ipv6'
. -
family
<string>'ipv4'
或'ipv6'
之一。默认值:'ipv4'
。¥
family
<string> One of either'ipv4'
or'ipv6'
. Default:'ipv4'
. -
flowlabel
<number> 仅当family
为'ipv6'
时才使用的 IPv6 流标签。¥
flowlabel
<number> An IPv6 flow-label used only iffamily
is'ipv6'
. -
port
<number> IP 端口。¥
port
<number> An IP port.
-