NIMServerSetting Class Reference

Inherits from NSObject
Declared in NIMServerSetting.h

Overview

云信服务器配置

  handshakeType

握手协议类型。基础的类型仅支持设置module和version.使用RSA和RC4加密方式。 高级类型,可以通过配置encryptConfig来指定使用的加密类型。默认:NIMHandshakeTypeBasics

@property (nonatomic, assign) NIMHandshakeType handshakeType

Discussion

握手协议类型。基础的类型仅支持设置module和version.使用RSA和RC4加密方式。 高级类型,可以通过配置encryptConfig来指定使用的加密类型。默认:NIMHandshakeTypeBasics

Declared In

NIMServerSetting.h

  env

服务器环境(默认线上环境)

@property (nonatomic, assign) NIMServerEnv env

Discussion

服务器环境(默认线上环境)

Declared In

NIMServerSetting.h

  module

module

@property (nonatomic, copy) NSString *module

Discussion

module

Declared In

NIMServerSetting.h

  version

版本

@property (nonatomic, assign) NSInteger version

Discussion

版本

Declared In

NIMServerSetting.h

  isSpecialCloud

是否是专属云

@property (nonatomic, assign) BOOL isSpecialCloud

Discussion

是否是专属云

Declared In

NIMServerSetting.h

  encryptConfig

握手加密配置

@property (nonatomic, readonly) NIMEncryptionConfig *encryptConfig

Discussion

握手加密配置

Declared In

NIMServerSetting.h

  lbsAddress

IM 服务器 lbs 地址

@property (nonatomic, copy) NSString *lbsAddress

Discussion

IM 服务器 lbs 地址

Declared In

NIMServerSetting.h

  linkAddress

IM 服务器默认地址, IPv4

@property (nonatomic, copy) NSString *linkAddress

Discussion

IM 服务器默认地址, IPv4

Declared In

NIMServerSetting.h

  ipv6LinkAddress

IM 服务器默认地址, IPv6

@property (nonatomic, copy) NSString *ipv6LinkAddress

Discussion

IM 服务器默认地址, IPv6

Declared In

NIMServerSetting.h

  nosLbsAddress

NOS 服务器 lbs 地址

@property (nonatomic, copy) NSString *nosLbsAddress

Discussion

NOS 服务器 lbs 地址

Declared In

NIMServerSetting.h

  nosUploadAddress

NOS 上传服务器默认地址

@property (nonatomic, copy) NSString *nosUploadAddress

Discussion

NOS 上传服务器默认地址

Declared In

NIMServerSetting.h

  httpsEnabled

是否开启 HTTPS 支持

@property (nonatomic, assign) BOOL httpsEnabled

Discussion

是否开启 HTTPS 支持

默认情况为 YES,若需要使用非 HTTPS 进行文件上传下载,则设置为 NO。 如果设置为 YES,上传将使用 https 上传,所有返回 url 的地方也会尝试将 http url 调整为 https url 如果设置为 NO,上传将使用 http 上传,而所有返回 url 的地方都只返回原 url,而不做任何处理,同时 SDKConfigenabledHttpsForInfoenabledHttpsForMessage 将无效

Declared In

NIMServerSetting.h

  nosUploadHost

NOS 上传 Host,用于 HTTPS 上传时 Host 验证

@property (nonatomic, copy, nullable) NSString *nosUploadHost

Discussion

NOS 上传 Host,用于 HTTPS 上传时 Host 验证

Declared In

NIMServerSetting.h

  nosDownloadAddress

NOS 下载地址,用于拼接下载地址

@property (nonatomic, copy) NSString *nosDownloadAddress

Discussion

NOS 下载地址,用于拼接下载地址

Declared In

NIMServerSetting.h

  nosAccelerateHost

NOS 加速 Host

@property (nonatomic, copy, nullable) NSString *nosAccelerateHost

Discussion

NOS 加速 Host

Declared In

NIMServerSetting.h

  nosAccelerateHosts

NOS加速需要被替换的域名列表 不包含bucket部分

@property (strong, nonatomic, nullable) NSArray<NSString*> *nosAccelerateHosts

Discussion

NOS加速需要被替换的域名列表 不包含bucket部分

Declared In

NIMServerSetting.h

  nosAccelerateAddress

NOS 加速替换地址

@property (nonatomic, copy, nullable) NSString *nosAccelerateAddress

Discussion

NOS 加速替换地址

Declared In

NIMServerSetting.h

  ntServerAddress

NT 服务器地址

@property (nonatomic, copy, nullable) NSString *ntServerAddress

Discussion

NT 服务器地址

Declared In

NIMServerSetting.h

  exceptionUploadAddress

异常上报地址: 408、415、500等

@property (nonatomic, copy) NSString *exceptionUploadAddress

Discussion

异常上报地址: 408、415、500等

Declared In

NIMServerSetting.h

  lbsIpv4DetectAddress

IPv4 连通性检测地址

@property (nonatomic, copy, nullable) NSString *lbsIpv4DetectAddress

Discussion

IPv4 连通性检测地址

Declared In

NIMServerSetting.h

  lbsIpv6DetectAddress

IPv6 连通性检测地址

@property (nonatomic, copy, nullable) NSString *lbsIpv6DetectAddress

Discussion

IPv6 连通性检测地址

Declared In

NIMServerSetting.h

  lbsLinkAddressType

lbs返回的link地址的类型, 在初始化前设置

@property (nonatomic, assign) NIMLinkAddressType lbsLinkAddressType

Discussion

lbs返回的link地址的类型, 在初始化前设置

Declared In

NIMServerSetting.h

  cdnEnable

在端测加速域名(nosAccelerateAddress)和后台CDN域名都配置的情况下,选择后台CDN域名下发优先,默认为 YES

@property (nonatomic, assign) BOOL cdnEnable

Discussion

在端测加速域名(nosAccelerateAddress)和后台CDN域名都配置的情况下,选择后台CDN域名下发优先,默认为 YES

Declared In

NIMServerSetting.h

– updateSettingFromConfigData:

从配置数据更新

- (void)updateSettingFromConfigData:(NSData *)data

Discussion

从配置数据更新

Declared In

NIMServerSetting.h