NanoCDNReceiver

@protocol NanoCDNReceiver <NSObject>

nanoCDN receiver interface

  • On nanoCDN found

    Declaration

    Objective-C

    - (void)onNanoCDNFound:(NSString *)jsonAccountId
               nanoCDNHost:(NSString *)nanoCDNHost;

    Parameters

    jsonAccountId

    json with account id

    nanoCDNHost

    nanoCDN hostname/ip

  • On nanoCDN not found after the resolving timeout Update options TIMEOUT_NANO_CDN_STATIC_RESOLVING (static resolving) or TIMEOUT_NANO_CDN_DISCOVER_RESOLVING (mDNS resolving) if needed

    Declaration

    Objective-C

    - (void)onNanoCDNNotFound:(NSString *)nanoCDNHost;

    Parameters

    nanoCDNHost

    nanoCDN hostname/ip

  • On nanoCDN lost If restartNanoCDNResolving is called, all connected nanoCDN will trigger onNanoCDNLost

    Declaration

    Objective-C

    - (void)onNanoCDNLost:(NSString *)nanoCDNHost;

    Parameters

    nanoCDNHost

    nanoCDN hostname/ip