DITRemotePeer

@interface DITRemotePeer : NSObject

A summary snapshot of the types of connections currently active to a remote peer.

  • The unique network identifier of the remote peer.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull networkId;
  • 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

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull deviceName;
  • The connections that are currently active with the remote peer.

    Declaration

    Objective-C

    @property (nonatomic) NSArray<NSString *> *_Nonnull connections;
  • Dedicated initializer for a DITRemotePeer.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithNetworkId:(nonnull NSString *)networkId
                                   deviceName:(nonnull NSString *)deviceName
                                  connections:
                                      (nonnull NSArray<NSString *> *)connections;

    Return Value

    A newly initialized DITRemotePeer.