new net.SocketAddress([options])


  • options <Object>
    • address <string> 网络地址,可以是 IPv4 或 IPv6 字符串。 默认值:当 family'ipv4' 时为 '127.0.0.1';当 family'ipv6' 时为 '::'
    • family <string> 可选 'ipv4''ipv6'默认值'ipv4'
    • flowlabel <number> 仅当 family'ipv6' 时使用的 IPv6 流标签。
    • port <number> IP 端口。