IPv4Address

public struct IPv4Address

A single IPv4 address for SocketAddress.

  • The libc socket address for an IPv4 address.

    Declaration

    Swift

    public var address: sockaddr_in { get }
  • The host this address is for, if known.

    Declaration

    Swift

    public var host: String { get }