OpenVPNAdapter/OpenVPN Adapter/OpenVPNInterfaceStats.h

49 lines
846 B
C
Raw Normal View History

2017-04-26 19:27:54 +08:00
//
// OpenVPNInterfaceStats.h
// OpenVPN Adapter
//
// Created by Sergey Abramchuk on 26.04.17.
//
//
#import <Foundation/Foundation.h>
/**
Class used to provide stats for an interface
*/
2017-04-26 19:27:54 +08:00
@interface OpenVPNInterfaceStats : NSObject
/**
Amount of received bytes
*/
2017-04-26 19:27:54 +08:00
@property (readonly, nonatomic) NSInteger bytesIn;
/**
Amout of sent bytes
*/
2017-04-26 19:27:54 +08:00
@property (readonly, nonatomic) NSInteger bytesOut;
/**
Amount of received packets
*/
2017-04-26 19:27:54 +08:00
@property (readonly, nonatomic) NSInteger packetsIn;
/**
Amout of sent packets
*/
2017-04-26 19:27:54 +08:00
@property (readonly, nonatomic) NSInteger packetsOut;
/**
Amount of incoming packets handling errors
*/
2017-04-26 19:27:54 +08:00
@property (readonly, nonatomic) NSInteger errorsIn;
/**
Amount of outgoing packets handling errors
*/
2017-04-26 19:27:54 +08:00
@property (readonly, nonatomic) NSInteger errorsOut;
- (nonnull instancetype) __unavailable init;
2017-04-26 19:27:54 +08:00
@end