Ipv4Address
- Companion
- class
trait Ipv4AddressCompanionPlatform
class Object
trait Matchable
class Any
Value members
Methods
Parses an IPv4 address from a dotted-decimal string, returning
None
if the string is not a valid IPv4 address.Constructs an IPv4 address from a 4-element byte array.
Returns
Returns
Some
when array is exactly 4-bytes and None
otherwise.Constructs an address from the specified 4 bytes.
Each byte is represented as an
the
Int
to avoid having to manually call .toByte
on each value --the
toByte
call is done inside this function.