mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2024-10-07 01:32:08 +08:00
Wrap clock tick property
This commit is contained in:
parent
58cbfbc460
commit
102e617ad9
@ -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
|
||||
|
@ -359,4 +359,12 @@ using namespace openvpn;
|
||||
_config.info = info;
|
||||
}
|
||||
|
||||
- (NSUInteger)clockTick {
|
||||
return _config.clockTickMS;
|
||||
}
|
||||
|
||||
- (void)setClockTick:(NSUInteger)clockTick {
|
||||
_config.clockTickMS = clockTick;
|
||||
}
|
||||
|
||||
@end
|
||||
|
Loading…
Reference in New Issue
Block a user