Creates a new SocketAddrV4 instance.
The options for creating the socket address or a port number.
Optionaladdress?: Ipv4AddrThe IPv4 address. Defaults to Ipv4Addr.UNSPECIFIED.
The port number.
ReadonlyaddressIPv4 address of the socket address.
ReadonlyfamilyAddress family of the socket address.
ReadonlyportPort number of the socket address.
StaticfromCreates a new SocketAddrV4 instance from a string representation.
The string representation of the socket address in the format "address:port".
An CoreResult containing the SocketAddrV4 instance or a TypeError if the input is invalid.
StaticfromCreates a new SocketAddrV4 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 SocketAddrV4 instance.
Represents an IPv4 socket address, consisting of an IPv4 address and a port number.
Example
Since
v0.0.1