init(ipAddress:port:)

Create a new SocketAddress for an IP address in string form.

SocketAddresses.swift:349
init(ipAddress: String, port: Int) throws

Parameters

ipAddress

The IP address, in string form.

port

The target port.

Throws

may throw SocketAddressError.failedToParseIPString if the IP address cannot be parsed.