Wrap transport stats

This commit is contained in:
Sergey Abramchuk
2017-04-26 14:15:17 +03:00
parent d6416eaece
commit d69f6e8e32
4 changed files with 108 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
//
// 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
/**
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;
/**
Number of binary milliseconds (1/1024th of a second) since
last packet was received, or -1 if undefined
*/
@property (readonly, nonatomic) NSInteger lastPacketReceived;
@end