Wrap connection timeout property and update documentation for IPv6 preference options

This commit is contained in:
Sergey Abramchuk
2017-04-23 13:54:54 +03:00
parent 497dfc96a0
commit 8decbe13aa
2 changed files with 16 additions and 4 deletions
+8 -4
View File
@@ -12,14 +12,13 @@
/**
IPv6 preference options
- IPv6PreferenceEnabled: request combined IPv4/IPv6 tunnel
- IPv6PreferenceDisabled: disable IPv6, so tunnel will be IPv4-only
- IPv6PreferenceDefault: leave decision to server
*/
typedef NS_ENUM(NSInteger, IPv6Preference) {
/// Request combined IPv4/IPv6 tunnel
IPv6PreferenceEnabled,
/// Disable IPv6, so tunnel will be IPv4-only
IPv6PreferenceDisabled,
/// Leave decision to server
IPv6PreferenceDefault
};
@@ -60,4 +59,9 @@ typedef NS_ENUM(NSInteger, IPv6Preference) {
*/
@property (nonatomic) IPv6Preference ipv6;
/**
Connection timeout in seconds, or 0 to retry indefinitely
*/
@property (nonatomic) NSInteger connectionTimeout;
@end