Skip to content

Commit b792be0

Browse files
committed
file init
1 parent 39b36fb commit b792be0

File tree

18 files changed

+1345
-0
lines changed

18 files changed

+1345
-0
lines changed

NetDiag.xcodeproj/project.pbxproj

Lines changed: 294 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,294 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 46;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
DF2B76EC1C33702D00643678 /* QNNPing.m in Sources */ = {isa = PBXBuildFile; fileRef = DF2B76EB1C33702D00643678 /* QNNPing.m */; };
11+
DF2B76F11C3B9DA100643678 /* QNNSimplePing.m in Sources */ = {isa = PBXBuildFile; fileRef = DF2B76F01C3B9DA100643678 /* QNNSimplePing.m */; };
12+
DF9D41FA1C57787500486F87 /* QNNTcpPing.m in Sources */ = {isa = PBXBuildFile; fileRef = DF9D41F91C57787500486F87 /* QNNTcpPing.m */; };
13+
DF9D41FD1C57789B00486F87 /* QNNUtil.m in Sources */ = {isa = PBXBuildFile; fileRef = DF9D41FC1C57789B00486F87 /* QNNUtil.m */; };
14+
DF9D42001C5778B600486F87 /* QNNRtmp.m in Sources */ = {isa = PBXBuildFile; fileRef = DF9D41FF1C5778B600486F87 /* QNNRtmp.m */; };
15+
DF9D42031C5778EA00486F87 /* QNNTraceRoute.m in Sources */ = {isa = PBXBuildFile; fileRef = DF9D42021C5778EA00486F87 /* QNNTraceRoute.m */; };
16+
DF9D42091C57BEFD00486F87 /* QNNExternalIp.m in Sources */ = {isa = PBXBuildFile; fileRef = DF9D42081C57BEFD00486F87 /* QNNExternalIp.m */; };
17+
DFCEC6491C2EC01D0058EE65 /* QNNetDiag.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = DFCEC6481C2EC01D0058EE65 /* QNNetDiag.h */; };
18+
/* End PBXBuildFile section */
19+
20+
/* Begin PBXCopyFilesBuildPhase section */
21+
DFCEC6431C2EC01D0058EE65 /* CopyFiles */ = {
22+
isa = PBXCopyFilesBuildPhase;
23+
buildActionMask = 2147483647;
24+
dstPath = "include/$(PRODUCT_NAME)";
25+
dstSubfolderSpec = 16;
26+
files = (
27+
DFCEC6491C2EC01D0058EE65 /* QNNetDiag.h in CopyFiles */,
28+
);
29+
runOnlyForDeploymentPostprocessing = 0;
30+
};
31+
/* End PBXCopyFilesBuildPhase section */
32+
33+
/* Begin PBXFileReference section */
34+
DF2B76EA1C33702D00643678 /* QNNPing.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = QNNPing.h; sourceTree = "<group>"; };
35+
DF2B76EB1C33702D00643678 /* QNNPing.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = QNNPing.m; sourceTree = "<group>"; };
36+
DF2B76ED1C33706900643678 /* QNNProtocols.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = QNNProtocols.h; sourceTree = "<group>"; };
37+
DF2B76EF1C3B9DA100643678 /* QNNSimplePing.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = QNNSimplePing.h; sourceTree = "<group>"; };
38+
DF2B76F01C3B9DA100643678 /* QNNSimplePing.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = QNNSimplePing.m; sourceTree = "<group>"; };
39+
DF9D41F81C57787500486F87 /* QNNTcpPing.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = QNNTcpPing.h; sourceTree = "<group>"; };
40+
DF9D41F91C57787500486F87 /* QNNTcpPing.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = QNNTcpPing.m; sourceTree = "<group>"; };
41+
DF9D41FB1C57789B00486F87 /* QNNUtil.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = QNNUtil.h; sourceTree = "<group>"; };
42+
DF9D41FC1C57789B00486F87 /* QNNUtil.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = QNNUtil.m; sourceTree = "<group>"; };
43+
DF9D41FE1C5778B600486F87 /* QNNRtmp.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = QNNRtmp.h; sourceTree = "<group>"; };
44+
DF9D41FF1C5778B600486F87 /* QNNRtmp.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = QNNRtmp.m; sourceTree = "<group>"; };
45+
DF9D42011C5778EA00486F87 /* QNNTraceRoute.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = QNNTraceRoute.h; sourceTree = "<group>"; };
46+
DF9D42021C5778EA00486F87 /* QNNTraceRoute.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = QNNTraceRoute.m; sourceTree = "<group>"; };
47+
DF9D42071C57BEFD00486F87 /* QNNExternalIp.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = QNNExternalIp.h; sourceTree = "<group>"; };
48+
DF9D42081C57BEFD00486F87 /* QNNExternalIp.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = QNNExternalIp.m; sourceTree = "<group>"; };
49+
DFCEC6451C2EC01D0058EE65 /* libNetDiag.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libNetDiag.a; sourceTree = BUILT_PRODUCTS_DIR; };
50+
DFCEC6481C2EC01D0058EE65 /* QNNetDiag.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = QNNetDiag.h; sourceTree = "<group>"; };
51+
/* End PBXFileReference section */
52+
53+
/* Begin PBXFrameworksBuildPhase section */
54+
DFCEC6421C2EC01D0058EE65 /* Frameworks */ = {
55+
isa = PBXFrameworksBuildPhase;
56+
buildActionMask = 2147483647;
57+
files = (
58+
);
59+
runOnlyForDeploymentPostprocessing = 0;
60+
};
61+
/* End PBXFrameworksBuildPhase section */
62+
63+
/* Begin PBXGroup section */
64+
DFCEC63C1C2EC01D0058EE65 = {
65+
isa = PBXGroup;
66+
children = (
67+
DFCEC6471C2EC01D0058EE65 /* NetDiag */,
68+
DFCEC6461C2EC01D0058EE65 /* Products */,
69+
);
70+
sourceTree = "<group>";
71+
};
72+
DFCEC6461C2EC01D0058EE65 /* Products */ = {
73+
isa = PBXGroup;
74+
children = (
75+
DFCEC6451C2EC01D0058EE65 /* libNetDiag.a */,
76+
);
77+
name = Products;
78+
sourceTree = "<group>";
79+
};
80+
DFCEC6471C2EC01D0058EE65 /* NetDiag */ = {
81+
isa = PBXGroup;
82+
children = (
83+
DFCEC6481C2EC01D0058EE65 /* QNNetDiag.h */,
84+
DF2B76EA1C33702D00643678 /* QNNPing.h */,
85+
DF2B76EB1C33702D00643678 /* QNNPing.m */,
86+
DF2B76ED1C33706900643678 /* QNNProtocols.h */,
87+
DF2B76EF1C3B9DA100643678 /* QNNSimplePing.h */,
88+
DF2B76F01C3B9DA100643678 /* QNNSimplePing.m */,
89+
DF9D41F81C57787500486F87 /* QNNTcpPing.h */,
90+
DF9D41F91C57787500486F87 /* QNNTcpPing.m */,
91+
DF9D41FB1C57789B00486F87 /* QNNUtil.h */,
92+
DF9D41FC1C57789B00486F87 /* QNNUtil.m */,
93+
DF9D41FE1C5778B600486F87 /* QNNRtmp.h */,
94+
DF9D41FF1C5778B600486F87 /* QNNRtmp.m */,
95+
DF9D42011C5778EA00486F87 /* QNNTraceRoute.h */,
96+
DF9D42021C5778EA00486F87 /* QNNTraceRoute.m */,
97+
DF9D42071C57BEFD00486F87 /* QNNExternalIp.h */,
98+
DF9D42081C57BEFD00486F87 /* QNNExternalIp.m */,
99+
);
100+
path = NetDiag;
101+
sourceTree = "<group>";
102+
};
103+
/* End PBXGroup section */
104+
105+
/* Begin PBXNativeTarget section */
106+
DFCEC6441C2EC01D0058EE65 /* NetDiag */ = {
107+
isa = PBXNativeTarget;
108+
buildConfigurationList = DFCEC64E1C2EC01D0058EE65 /* Build configuration list for PBXNativeTarget "NetDiag" */;
109+
buildPhases = (
110+
DFCEC6411C2EC01D0058EE65 /* Sources */,
111+
DFCEC6421C2EC01D0058EE65 /* Frameworks */,
112+
DFCEC6431C2EC01D0058EE65 /* CopyFiles */,
113+
);
114+
buildRules = (
115+
);
116+
dependencies = (
117+
);
118+
name = NetDiag;
119+
productName = NetDiag;
120+
productReference = DFCEC6451C2EC01D0058EE65 /* libNetDiag.a */;
121+
productType = "com.apple.product-type.library.static";
122+
};
123+
/* End PBXNativeTarget section */
124+
125+
/* Begin PBXProject section */
126+
DFCEC63D1C2EC01D0058EE65 /* Project object */ = {
127+
isa = PBXProject;
128+
attributes = {
129+
LastUpgradeCheck = 0720;
130+
ORGANIZATIONNAME = "Qiniu Cloud Storage";
131+
TargetAttributes = {
132+
DFCEC6441C2EC01D0058EE65 = {
133+
CreatedOnToolsVersion = 7.2;
134+
};
135+
};
136+
};
137+
buildConfigurationList = DFCEC6401C2EC01D0058EE65 /* Build configuration list for PBXProject "NetDiag" */;
138+
compatibilityVersion = "Xcode 3.2";
139+
developmentRegion = English;
140+
hasScannedForEncodings = 0;
141+
knownRegions = (
142+
en,
143+
);
144+
mainGroup = DFCEC63C1C2EC01D0058EE65;
145+
productRefGroup = DFCEC6461C2EC01D0058EE65 /* Products */;
146+
projectDirPath = "";
147+
projectRoot = "";
148+
targets = (
149+
DFCEC6441C2EC01D0058EE65 /* NetDiag */,
150+
);
151+
};
152+
/* End PBXProject section */
153+
154+
/* Begin PBXSourcesBuildPhase section */
155+
DFCEC6411C2EC01D0058EE65 /* Sources */ = {
156+
isa = PBXSourcesBuildPhase;
157+
buildActionMask = 2147483647;
158+
files = (
159+
DF2B76EC1C33702D00643678 /* QNNPing.m in Sources */,
160+
DF9D41FA1C57787500486F87 /* QNNTcpPing.m in Sources */,
161+
DF2B76F11C3B9DA100643678 /* QNNSimplePing.m in Sources */,
162+
DF9D42091C57BEFD00486F87 /* QNNExternalIp.m in Sources */,
163+
DF9D42001C5778B600486F87 /* QNNRtmp.m in Sources */,
164+
DF9D41FD1C57789B00486F87 /* QNNUtil.m in Sources */,
165+
DF9D42031C5778EA00486F87 /* QNNTraceRoute.m in Sources */,
166+
);
167+
runOnlyForDeploymentPostprocessing = 0;
168+
};
169+
/* End PBXSourcesBuildPhase section */
170+
171+
/* Begin XCBuildConfiguration section */
172+
DFCEC64C1C2EC01D0058EE65 /* Debug */ = {
173+
isa = XCBuildConfiguration;
174+
buildSettings = {
175+
ALWAYS_SEARCH_USER_PATHS = NO;
176+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
177+
CLANG_CXX_LIBRARY = "libc++";
178+
CLANG_ENABLE_MODULES = YES;
179+
CLANG_ENABLE_OBJC_ARC = YES;
180+
CLANG_WARN_BOOL_CONVERSION = YES;
181+
CLANG_WARN_CONSTANT_CONVERSION = YES;
182+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
183+
CLANG_WARN_EMPTY_BODY = YES;
184+
CLANG_WARN_ENUM_CONVERSION = YES;
185+
CLANG_WARN_INT_CONVERSION = YES;
186+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
187+
CLANG_WARN_UNREACHABLE_CODE = YES;
188+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
189+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
190+
COPY_PHASE_STRIP = NO;
191+
DEBUG_INFORMATION_FORMAT = dwarf;
192+
ENABLE_STRICT_OBJC_MSGSEND = YES;
193+
ENABLE_TESTABILITY = YES;
194+
GCC_C_LANGUAGE_STANDARD = gnu99;
195+
GCC_DYNAMIC_NO_PIC = NO;
196+
GCC_NO_COMMON_BLOCKS = YES;
197+
GCC_OPTIMIZATION_LEVEL = 0;
198+
GCC_PREPROCESSOR_DEFINITIONS = (
199+
"DEBUG=1",
200+
"$(inherited)",
201+
);
202+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
203+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
204+
GCC_WARN_UNDECLARED_SELECTOR = YES;
205+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
206+
GCC_WARN_UNUSED_FUNCTION = YES;
207+
GCC_WARN_UNUSED_VARIABLE = YES;
208+
IPHONEOS_DEPLOYMENT_TARGET = 9.2;
209+
MTL_ENABLE_DEBUG_INFO = YES;
210+
ONLY_ACTIVE_ARCH = YES;
211+
SDKROOT = iphoneos;
212+
};
213+
name = Debug;
214+
};
215+
DFCEC64D1C2EC01D0058EE65 /* Release */ = {
216+
isa = XCBuildConfiguration;
217+
buildSettings = {
218+
ALWAYS_SEARCH_USER_PATHS = NO;
219+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
220+
CLANG_CXX_LIBRARY = "libc++";
221+
CLANG_ENABLE_MODULES = YES;
222+
CLANG_ENABLE_OBJC_ARC = YES;
223+
CLANG_WARN_BOOL_CONVERSION = YES;
224+
CLANG_WARN_CONSTANT_CONVERSION = YES;
225+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
226+
CLANG_WARN_EMPTY_BODY = YES;
227+
CLANG_WARN_ENUM_CONVERSION = YES;
228+
CLANG_WARN_INT_CONVERSION = YES;
229+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
230+
CLANG_WARN_UNREACHABLE_CODE = YES;
231+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
232+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
233+
COPY_PHASE_STRIP = NO;
234+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
235+
ENABLE_NS_ASSERTIONS = NO;
236+
ENABLE_STRICT_OBJC_MSGSEND = YES;
237+
GCC_C_LANGUAGE_STANDARD = gnu99;
238+
GCC_NO_COMMON_BLOCKS = YES;
239+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
240+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
241+
GCC_WARN_UNDECLARED_SELECTOR = YES;
242+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
243+
GCC_WARN_UNUSED_FUNCTION = YES;
244+
GCC_WARN_UNUSED_VARIABLE = YES;
245+
IPHONEOS_DEPLOYMENT_TARGET = 9.2;
246+
MTL_ENABLE_DEBUG_INFO = NO;
247+
SDKROOT = iphoneos;
248+
VALIDATE_PRODUCT = YES;
249+
};
250+
name = Release;
251+
};
252+
DFCEC64F1C2EC01D0058EE65 /* Debug */ = {
253+
isa = XCBuildConfiguration;
254+
buildSettings = {
255+
OTHER_LDFLAGS = "-ObjC";
256+
PRODUCT_NAME = "$(TARGET_NAME)";
257+
SKIP_INSTALL = YES;
258+
};
259+
name = Debug;
260+
};
261+
DFCEC6501C2EC01D0058EE65 /* Release */ = {
262+
isa = XCBuildConfiguration;
263+
buildSettings = {
264+
OTHER_LDFLAGS = "-ObjC";
265+
PRODUCT_NAME = "$(TARGET_NAME)";
266+
SKIP_INSTALL = YES;
267+
};
268+
name = Release;
269+
};
270+
/* End XCBuildConfiguration section */
271+
272+
/* Begin XCConfigurationList section */
273+
DFCEC6401C2EC01D0058EE65 /* Build configuration list for PBXProject "NetDiag" */ = {
274+
isa = XCConfigurationList;
275+
buildConfigurations = (
276+
DFCEC64C1C2EC01D0058EE65 /* Debug */,
277+
DFCEC64D1C2EC01D0058EE65 /* Release */,
278+
);
279+
defaultConfigurationIsVisible = 0;
280+
defaultConfigurationName = Release;
281+
};
282+
DFCEC64E1C2EC01D0058EE65 /* Build configuration list for PBXNativeTarget "NetDiag" */ = {
283+
isa = XCConfigurationList;
284+
buildConfigurations = (
285+
DFCEC64F1C2EC01D0058EE65 /* Debug */,
286+
DFCEC6501C2EC01D0058EE65 /* Release */,
287+
);
288+
defaultConfigurationIsVisible = 0;
289+
defaultConfigurationName = Release;
290+
};
291+
/* End XCConfigurationList section */
292+
};
293+
rootObject = DFCEC63D1C2EC01D0058EE65 /* Project object */;
294+
}

NetDiag.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

NetDiag/QNNExternalIp.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//
2+
// QNNExternalIp.h
3+
// NetDiag
4+
//
5+
// Created by bailong on 16/1/26.
6+
// Copyright © 2016年 Qiniu Cloud Storage. All rights reserved.
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
11+
@interface QNNExternalIp : NSObject
12+
13+
@end

NetDiag/QNNExternalIp.m

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//
2+
// QNNExternalIp.m
3+
// NetDiag
4+
//
5+
// Created by bailong on 16/1/26.
6+
// Copyright © 2016年 Qiniu Cloud Storage. All rights reserved.
7+
//
8+
9+
#import "QNNExternalIp.h"
10+
11+
@implementation QNNExternalIp
12+
13+
@end

NetDiag/QNNPing.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//
2+
// QNNPing.h
3+
// NetDiag
4+
//
5+
// Created by bailong on 15/12/30.
6+
// Copyright © 2015年 Qiniu Cloud Storage. All rights reserved.
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
#import "QNNProtocols.h"
11+
12+
@interface QNNPing : NSObject
13+
14+
-(instancetype) init:(NSString*)dest;
15+
16+
-(instancetype) init:(NSString*)dest count:(int)count;
17+
18+
@end

NetDiag/QNNPing.m

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
//
2+
// QNNPing.m
3+
// NetDiag
4+
//
5+
// Created by bailong on 15/12/30.
6+
// Copyright © 2015年 Qiniu Cloud Storage. All rights reserved.
7+
//
8+
9+
#import "QNNPing.h"
10+
11+
@interface QNNPing ()
12+
@property (nonatomic, strong) id<QNNOutputDelegate> output;
13+
@end
14+
15+
@implementation QNNPing
16+
17+
-(instancetype) init:(NSString*)dest{
18+
return [self init:dest count:10];
19+
}
20+
21+
-(instancetype) init:(NSString*)dest count:(int)count{
22+
23+
return self;
24+
}
25+
26+
-(void)setOutput:(id<QNNOutputDelegate>)output{
27+
_output = output;
28+
}
29+
30+
-(void)start{
31+
if (_output == nil) {
32+
return;
33+
}
34+
}
35+
36+
-(void)stop{
37+
38+
}
39+
40+
@end

0 commit comments

Comments
 (0)