mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-02-11 00:00:08 +08:00
* Add NSCopying, NSSecureCoding Support to Informational Classes * Remove Redundant Copies * Revert out-of-context typo corrections * Revert out-of-context changes * Convert lastPacketReceived to NSDate * Add NSCopying, NSSecureCoding Support to Informational Classes * Revert out-of-context changes * Convert lastPacketReceived to NSDate
42 lines
752 B
Objective-C
42 lines
752 B
Objective-C
//
|
|
// OpenVPNTransportStats.h
|
|
// OpenVPN Adapter
|
|
//
|
|
// Created by Sergey Abramchuk on 26.04.17.
|
|
//
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
/**
|
|
Class used to provide basic transport stats
|
|
*/
|
|
@interface OpenVPNTransportStats : 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;
|
|
|
|
/**
|
|
Date when last packet was received, or nil if undefined
|
|
*/
|
|
@property (readonly, nonatomic, nullable) NSDate *lastPacketReceived;
|
|
|
|
@end
|