init(_:)

Creates a new IPv4 SocketAddress.

SocketAddresses.swift:297
init(_ addr: sockaddr_in)

Parameters

addr

the sockaddr_in that holds the ipaddress and port.