DittoRemotePeerV2

public class DittoRemotePeerV2 : Identifiable, Equatable, Hashable

Represents a remote peer in the Ditto network.

  • id

    Declaration

    Swift

    public var id: UInt32 { get }
  • Address to contact this peer via Ditto Bus.

    Declaration

    Swift

    public var address: DittoAddress { get }
  • Advertising identifier of the remote peer.

    Declaration

    Swift

    public var networkID: UInt32 { get }
  • The human-readable device name of the remote peer. This defaults to the hostname but can be manually set by the application developer of the other peer. It is not necessarily unique.

    Declaration

    Swift

    public var deviceName: String { get }
  • os

    Operating system of the remote peer.

    Declaration

    Swift

    public var os: String { get }
  • An optional mesh role which can be assigned to group certain types of peers together and influence mesh connection priorities. Defaults to 0 if not set.

    Declaration

    Swift

    public var meshRole: UInt8 { get }
  • Declaration

    Swift

    public static func == (lhs: DittoRemotePeerV2, rhs: DittoRemotePeerV2) -> Bool
  • Declaration

    Swift

    public func hash(into hasher: inout Hasher)