1、使用cocoapods集成PingUtil
2、在导入、新增、修改的时候刷新ping值
This commit is contained in:
24
Pods/XYPingUtil/PingUtil/PingUtil.h
generated
Normal file
24
Pods/XYPingUtil/PingUtil/PingUtil.h
generated
Normal file
@ -0,0 +1,24 @@
|
||||
//
|
||||
// PingUtil.h
|
||||
// PingUtil
|
||||
//
|
||||
// Created by Rudy Yang on 2017/10/18.
|
||||
// Copyright © 2017年 Rudy Yang. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
FOUNDATION_EXPORT double PingUtil_maxOSVersionNumber;
|
||||
|
||||
FOUNDATION_EXPORT const unsigned char PingUtil_maxOSVersionString[];
|
||||
|
||||
@interface PingUtil : NSObject
|
||||
|
||||
@property (strong, nonatomic) NSMutableDictionary *pingTimers;
|
||||
|
||||
+ (void)pingHost:(NSString *)host success:(void(^)(NSInteger msCount))success failure:(void(^)(void))failure;
|
||||
|
||||
+ (void)pingHosts:(NSArray<NSString *> *)hosts success:(void(^)(NSArray<NSNumber *>* msCounts))success failure:(void(^)(void))failure;
|
||||
|
||||
|
||||
@end
|
Reference in New Issue
Block a user