Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Type Method

ipv4(host:port:)

Creates an IPv4 address from an address and port that are already known to be valid.
static func ipv4(host: String, port: Int) -> SocketAddress

Discussion

Use init(ipAddress:port:) to parse and validate an untrusted string instead.