Wrap clock tick property

This commit is contained in:
Sergey Abramchuk 2017-04-26 12:54:21 +03:00
parent 58cbfbc460
commit 102e617ad9
2 changed files with 18 additions and 0 deletions

View File

@ -82,6 +82,9 @@ typedef NS_ENUM(NSInteger, OpenVPNTLSCertProfile) {
OpenVPNTLSCertProfileDefault
};
/**
Class used to pass configuration
*/
@interface OpenVPNConfiguration : NSObject
/**
@ -200,4 +203,11 @@ typedef NS_ENUM(NSInteger, OpenVPNTLSCertProfile) {
*/
@property (nonatomic) BOOL info;
/**
Periodic convenience clock tick in milliseconds. Will call
[OpenVPNAdapterDelegate tick] at a frequency defined by this parameter.
Set to 0 to disable.
*/
@property (nonatomic) NSUInteger clockTick;
@end

View File

@ -359,4 +359,12 @@ using namespace openvpn;
_config.info = info;
}
- (NSUInteger)clockTick {
return _config.clockTickMS;
}
- (void)setClockTick:(NSUInteger)clockTick {
_config.clockTickMS = clockTick;
}
@end