Files
OpenVPNAdapter/OpenVPN Adapter/OpenVPNInterfaceStats.h
Jonathan Downing 270d5b8cac Add NSCopying, NSSecureCoding Support to Informational Classes (#17)
* Add NSCopying, NSSecureCoding Support to Informational Classes

* Remove Redundant Copies

* Revert out-of-context typo corrections

* Revert out-of-context changes
2017-09-16 17:42:57 +03:00

47 lines
828 B
Objective-C

//
// OpenVPNInterfaceStats.h
// OpenVPN Adapter
//
// Created by Sergey Abramchuk on 26.04.17.
//
//
#import <Foundation/Foundation.h>
/**
Class used to provide stats for an interface
*/
@interface OpenVPNInterfaceStats : NSObject <NSCopying, NSSecureCoding>
/**
Amount of received bytes
*/
@property (readonly, nonatomic) NSInteger bytesIn;
/**
Amout of sent bytes
*/
@property (readonly, nonatomic) NSInteger bytesOut;
/**
Amount of received packets
*/
@property (readonly, nonatomic) NSInteger packetsIn;
/**
Amout of sent packets
*/
@property (readonly, nonatomic) NSInteger packetsOut;
/**
Amount of incoming packets handling errors
*/
@property (readonly, nonatomic) NSInteger errorsIn;
/**
Amount of outgoing packets handling errors
*/
@property (readonly, nonatomic) NSInteger errorsOut;
@end