NIMAVChatNetDetectResult.h
972 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//
// NIMAVChatNetDetectResult.h
// NIMAVChat
//
// Created by Netease on 16/12/16.
// Copyright © 2016年 Netease. All rights reserved.
//
#import <Foundation/Foundation.h>
/**
网络探测任务结果
*/
@interface NIMAVChatNetDetectResult : NSObject
/**
任务 id
*/
@property (nonatomic,assign,readonly) UInt64 taskId;
/**
任务执行结果,如果没有错误则为 nil
*/
@property (nonatomic,strong,readonly) NSError *error;
/**
丢包率百分比
*/
@property (nonatomic,assign,readonly) NSInteger lossRate;
/**
rtt 最大值
*/
@property (nonatomic,assign,readonly) NSInteger rttMaximal;
/**
rtt 最小值
*/
@property (nonatomic,assign,readonly) NSInteger rttMinimal;
/**
rtt 平均值
*/
@property (nonatomic,assign,readonly) NSInteger rttAverage;
/**
rtt 偏差
*/
@property (nonatomic,assign,readonly) NSInteger rttMeanDeviation;
/**
扩展信息
*/
@property (nonatomic,copy,readonly) NSString *expandInfo;
@end