IP4Network
public struct IP4Network
Undocumented
-
Undocumented
Declaration
Swift
public let baseAddress: IP4Address -
Undocumented
Declaration
Swift
public let netmask: IP4Address -
Create an IPv4 Network by specifying the base address from the network and the prefix. This initializer will crash if the address is not a valid base address for the network.
Declaration
Swift
public init(prefix: UInt8, baseAddress: IP4Address)Parameters
prefixThe prefix for example /24 for a network with netmast 255.255.255.0
addressThe base address of the network
-
Create an IPv4 Network by specifying any address from the network and the prefix
Declaration
Swift
public init(prefix: UInt8, address: IP4Address)Parameters
prefixThe prefix for example /24 for a network with netmast 255.255.255.0
addressAny address of the network
-
Undocumented
Declaration
Swift
public func contains(address: IP4Address) -> Bool
IP4Network Structure Reference