init(packedIPAddress:port:)
Create a new SocketAddress
for an IP address in ByteBuffer form.
init(packedIPAddress: ByteBuffer, port: Int) throws
Parameters
- packedIPAddress
The IP address, in ByteBuffer form.
- port
The target port.
Throws
may throw SocketAddressError.failedToParseIPByteBuffer
if the IP address cannot be parsed.