Creates a new SocketAddrV6 instance.
The options for creating the socket address or a port number.
Optionaladdress?: Ipv6AddrOptional Ipv6Addr address. Defaults to Ipv6Addr.UNSPECIFIED.
Optionalflowlabel?: numberOptional flow label.
The port number.
ReadonlyaddressIPv6 address of the socket address.
ReadonlyfamilyAddress family of the socket address.
OptionalflowlabelOptional flow label of the socket address.
ReadonlyportPort number of the socket address.
Returns an object suitable for use as options in Node.js dgram.Socket.bind() method.
An object containing the port and address properties.
Returns an object suitable for use as options in Node.js net.Server.listen() method.
An object containing the port and host properties.
StaticfromCreates a new SocketAddrV6 instance from a string representation.
The string representation of the socket address in the format "[address]:port".
An CoreResult containing the SocketAddrV6 instance or a TypeError if the input is invalid.
StaticfromCreates a new SocketAddrV6 instance from a string representation or throws an error if the input is invalid.
The string representation of the socket address in the format "[address]:port".
The SocketAddrV6 instance.
Represents an IPv6 socket address, consisting of an IPv6 address, a port number, and an optional flow label.
Example
Since
v0.0.1