Procházet zdrojové kódy

1.去掉冗余文件

huangxiaodong před 1 rokem
rodič
revize
e07de5c60e

+ 0 - 18
创维盒子/双子星云手机.xcodeproj/project.pbxproj

@@ -125,9 +125,6 @@
 		18F9CB072ABD7835003FF71A /* QRCodeScanForChangeDeviceViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 18F9CB032ABD7835003FF71A /* QRCodeScanForChangeDeviceViewController.h */; };
 		18F9CB082ABD7835003FF71A /* QRCodeScanForChangeDeviceViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 18F9CB042ABD7835003FF71A /* QRCodeScanForChangeDeviceViewController.m */; };
 		18F9CB092ABD7835003FF71A /* TipsQRCodeForChangeDeviceViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 18F9CB052ABD7835003FF71A /* TipsQRCodeForChangeDeviceViewController.h */; };
-		18FCE5332AD12FE00020F623 /* ConnectTestViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 18FCE5302AD12FDF0020F623 /* ConnectTestViewController.h */; };
-		18FCE5342AD12FE00020F623 /* ConnectTestViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 18FCE5312AD12FDF0020F623 /* ConnectTestViewController.xib */; };
-		18FCE5352AD12FE00020F623 /* ConnectTestViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 18FCE5322AD12FE00020F623 /* ConnectTestViewController.m */; };
 		18FCE5382AD1351B0020F623 /* PlayerViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 18FCE5362AD1351A0020F623 /* PlayerViewController.mm */; };
 		18FCE5392AD1351B0020F623 /* PlayerViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 18FCE5372AD1351B0020F623 /* PlayerViewController.h */; };
 		18FCE53E2AD136670020F623 /* PlayerViewController+AdjustBtnFrame.h in Headers */ = {isa = PBXBuildFile; fileRef = 18FCE53A2AD136650020F623 /* PlayerViewController+AdjustBtnFrame.h */; };
@@ -694,7 +691,6 @@
 		6BD506B82B9576A4006E7CB0 /* DeviceThirdIdModel.h in Headers */ = {isa = PBXBuildFile; fileRef = 6BF0F3D32AD3937B000AA133 /* DeviceThirdIdModel.h */; };
 		6BD506B92B9576A4006E7CB0 /* NSDictionary+Log.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B2170962B15CD9200656670 /* NSDictionary+Log.h */; };
 		6BD506BA2B9576A4006E7CB0 /* PlayerViewController+backupsFile.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B1FBD342B455DD600926382 /* PlayerViewController+backupsFile.h */; };
-		6BD506BB2B9576A4006E7CB0 /* ConnectTestViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 18FCE5302AD12FDF0020F623 /* ConnectTestViewController.h */; };
 		6BD506BC2B9576A4006E7CB0 /* HelpDownScrollView.h in Headers */ = {isa = PBXBuildFile; fileRef = 181E84F02A8F0A9A00292B96 /* HelpDownScrollView.h */; };
 		6BD506BD2B9576A4006E7CB0 /* allVersionView.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B2170862B1444CC00656670 /* allVersionView.h */; };
 		6BD506BE2B9576A4006E7CB0 /* diskListBgView.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B45C50A2B5FA80E007E6911 /* diskListBgView.h */; };
@@ -909,7 +905,6 @@
 		6BD507902B9576A4006E7CB0 /* cachesFileManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B7272522B0CABC600C03F87 /* cachesFileManager.m */; };
 		6BD507912B9576A4006E7CB0 /* HWVersionModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 184C8ADC2A949DBD00F26650 /* HWVersionModel.m */; };
 		6BD507922B9576A4006E7CB0 /* NSArray+Log.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B21709B2B15CDB600656670 /* NSArray+Log.m */; };
-		6BD507932B9576A4006E7CB0 /* ConnectTestViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 18FCE5322AD12FE00020F623 /* ConnectTestViewController.m */; };
 		6BD507942B9576A4006E7CB0 /* downloadFileRecordCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 6BED888D2B4E901900F76DDC /* downloadFileRecordCell.m */; };
 		6BD507952B9576A4006E7CB0 /* UIProgressView+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = 183AE6292A8A2CF000B11CB0 /* UIProgressView+AFNetworking.m */; };
 		6BD507962B9576A4006E7CB0 /* HWAddFolderViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A031DD7327EC507000909527 /* HWAddFolderViewController.m */; };
@@ -1013,7 +1008,6 @@
 		6BD507FB2B9576A4006E7CB0 /* LICENSE_jsonmodel.txt in Resources */ = {isa = PBXBuildFile; fileRef = 183AE5E32A89CE3C00B11CB0 /* LICENSE_jsonmodel.txt */; };
 		6BD507FC2B9576A4006E7CB0 /* HWPageViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A08A94DA27E97DB800C544BB /* HWPageViewController.xib */; };
 		6BD507FD2B9576A4006E7CB0 /* HWPageListCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = A08A94DF27E9837600C544BB /* HWPageListCell.xib */; };
-		6BD507FE2B9576A4006E7CB0 /* ConnectTestViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 18FCE5312AD12FDF0020F623 /* ConnectTestViewController.xib */; };
 		6BD507FF2B9576A4006E7CB0 /* HWHomeListCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = A084D69727E8657800054880 /* HWHomeListCell.xib */; };
 		6BD508002B9576A4006E7CB0 /* HWToolListCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = A084D68D27E859D300054880 /* HWToolListCell.xib */; };
 		6BD508012B9576A4006E7CB0 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A003F6DD27D8428200715CBF /* LaunchScreen.storyboard */; };
@@ -1325,9 +1319,6 @@
 		18F9CB032ABD7835003FF71A /* QRCodeScanForChangeDeviceViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = QRCodeScanForChangeDeviceViewController.h; sourceTree = "<group>"; };
 		18F9CB042ABD7835003FF71A /* QRCodeScanForChangeDeviceViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = QRCodeScanForChangeDeviceViewController.m; sourceTree = "<group>"; };
 		18F9CB052ABD7835003FF71A /* TipsQRCodeForChangeDeviceViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TipsQRCodeForChangeDeviceViewController.h; sourceTree = "<group>"; };
-		18FCE5302AD12FDF0020F623 /* ConnectTestViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ConnectTestViewController.h; sourceTree = "<group>"; };
-		18FCE5312AD12FDF0020F623 /* ConnectTestViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = ConnectTestViewController.xib; sourceTree = "<group>"; };
-		18FCE5322AD12FE00020F623 /* ConnectTestViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ConnectTestViewController.m; sourceTree = "<group>"; };
 		18FCE5362AD1351A0020F623 /* PlayerViewController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = PlayerViewController.mm; sourceTree = "<group>"; };
 		18FCE5372AD1351B0020F623 /* PlayerViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PlayerViewController.h; sourceTree = "<group>"; };
 		18FCE53A2AD136650020F623 /* PlayerViewController+AdjustBtnFrame.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "PlayerViewController+AdjustBtnFrame.h"; sourceTree = "<group>"; };
@@ -2243,9 +2234,6 @@
 		18664FEA2AC28A0E008F8A61 /* UDP */ = {
 			isa = PBXGroup;
 			children = (
-				18FCE5302AD12FDF0020F623 /* ConnectTestViewController.h */,
-				18FCE5322AD12FE00020F623 /* ConnectTestViewController.m */,
-				18FCE5312AD12FDF0020F623 /* ConnectTestViewController.xib */,
 				18664FF42AC2B3A4008F8A61 /* ShearDeviceUDPManager.h */,
 				18664FF32AC2B3A4008F8A61 /* ShearDeviceUDPManager.m */,
 				18BB183F2AC417CB00A36F63 /* RYShearDeviceUDPManager.h */,
@@ -3337,7 +3325,6 @@
 				6B2170982B15CD9200656670 /* NSDictionary+Log.h in Headers */,
 				6B4C0F932C0320710070EF2E /* NSObject+Extensions.h in Headers */,
 				6B1FBD362B455DD600926382 /* PlayerViewController+backupsFile.h in Headers */,
-				18FCE5332AD12FE00020F623 /* ConnectTestViewController.h in Headers */,
 				181E84F22A8F0A9B00292B96 /* HelpDownScrollView.h in Headers */,
 				6B6ABEE62BFF49C800480BAC /* receiveDownloadRecordTableView.h in Headers */,
 				6B2170882B1444CC00656670 /* allVersionView.h in Headers */,
@@ -3558,7 +3545,6 @@
 				6BD506B92B9576A4006E7CB0 /* NSDictionary+Log.h in Headers */,
 				6B4C0F962C0320710070EF2E /* NSObject+Extensions.h in Headers */,
 				6BD506BA2B9576A4006E7CB0 /* PlayerViewController+backupsFile.h in Headers */,
-				6BD506BB2B9576A4006E7CB0 /* ConnectTestViewController.h in Headers */,
 				6BD506BC2B9576A4006E7CB0 /* HelpDownScrollView.h in Headers */,
 				6B6ABEE82BFF49C800480BAC /* receiveDownloadRecordTableView.h in Headers */,
 				6BD506BD2B9576A4006E7CB0 /* allVersionView.h in Headers */,
@@ -3882,7 +3868,6 @@
 				6BD507FB2B9576A4006E7CB0 /* LICENSE_jsonmodel.txt in Resources */,
 				6BD507FC2B9576A4006E7CB0 /* HWPageViewController.xib in Resources */,
 				6BD507FD2B9576A4006E7CB0 /* HWPageListCell.xib in Resources */,
-				6BD507FE2B9576A4006E7CB0 /* ConnectTestViewController.xib in Resources */,
 				6BD507FF2B9576A4006E7CB0 /* HWHomeListCell.xib in Resources */,
 				6BD508002B9576A4006E7CB0 /* HWToolListCell.xib in Resources */,
 				6BD508012B9576A4006E7CB0 /* LaunchScreen.storyboard in Resources */,
@@ -3919,7 +3904,6 @@
 				183AE5FF2A89CE3C00B11CB0 /* LICENSE_jsonmodel.txt in Resources */,
 				A08A94DC27E97DB800C544BB /* HWPageViewController.xib in Resources */,
 				A08A94E127E9837600C544BB /* HWPageListCell.xib in Resources */,
-				18FCE5342AD12FE00020F623 /* ConnectTestViewController.xib in Resources */,
 				A084D69927E8657800054880 /* HWHomeListCell.xib in Resources */,
 				A084D68F27E859D300054880 /* HWToolListCell.xib in Resources */,
 				A003F6E427D8428200715CBF /* LaunchScreen.storyboard in Resources */,
@@ -4287,7 +4271,6 @@
 				6B2C1E552C070ADE00FDCF82 /* ZFVolumeBrightnessView.m in Sources */,
 				6BD507922B9576A4006E7CB0 /* NSArray+Log.m in Sources */,
 				6BA08F4E2C01D05B00A2242D /* CWFileStreamSeparation.m in Sources */,
-				6BD507932B9576A4006E7CB0 /* ConnectTestViewController.m in Sources */,
 				6BD507942B9576A4006E7CB0 /* downloadFileRecordCell.m in Sources */,
 				6BD507952B9576A4006E7CB0 /* UIProgressView+AFNetworking.m in Sources */,
 				6B2C1E772C070ADE00FDCF82 /* ZFLandscapeViewController.m in Sources */,
@@ -4590,7 +4573,6 @@
 				6B2C1E542C070ADE00FDCF82 /* ZFVolumeBrightnessView.m in Sources */,
 				6B21709D2B15CDB600656670 /* NSArray+Log.m in Sources */,
 				6BA08F4D2C01D05B00A2242D /* CWFileStreamSeparation.m in Sources */,
-				18FCE5352AD12FE00020F623 /* ConnectTestViewController.m in Sources */,
 				6BED888F2B4E901900F76DDC /* downloadFileRecordCell.m in Sources */,
 				183AE64C2A8A2CF000B11CB0 /* UIProgressView+AFNetworking.m in Sources */,
 				6B2C1E762C070ADE00FDCF82 /* ZFLandscapeViewController.m in Sources */,

+ 0 - 2
创维盒子/双子星云手机/AppDelegate/SceneDelegate.m

@@ -15,8 +15,6 @@
 #import "SafeForKey.h"
 #import "TipsQRCodeViewController.h"
 #import "SetPWDFirstViewController.h"
-#import "ConnectTestViewController.h"
-//#import "PlayerViewController.h"
 #import "connectDeviceManager.h"
 #import "inputPWDViewController.h"
 #import "customLaunchView.h"

+ 0 - 14
创维盒子/双子星云手机/Vendor/UDP/ConnectTestViewController.h

@@ -1,14 +0,0 @@
-//
-//  ViewController.h
-//  RayProxyDemo
-//
-//  Created by Sim Tsai on 2023/8/28.
-//
-
-#import <UIKit/UIKit.h>
-
-@interface ConnectTestViewController : UIViewController
-
-
-@end
-

+ 0 - 237
创维盒子/双子星云手机/Vendor/UDP/ConnectTestViewController.m

@@ -1,237 +0,0 @@
-//
-//  ConnectTestViewController.m
-//  RayProxyDemo
-//
-//  Created by Sim Tsai on 2023/8/28.
-//
-
-#import "ConnectTestViewController.h"
-#import <RayProxy/RaylinkProxy.h>
-#import <CocoaAsyncSocket/GCDAsyncSocket.h>
-
-@interface ConnectTestViewController ()<
-GCDAsyncSocketDelegate,
-RaylinkProxyDelegate
-> {
-    dispatch_queue_t initProxyQueue;
-}
-@property (weak, nonatomic) IBOutlet UILabel *sdnConnectStateLab;
-@property (weak, nonatomic) IBOutlet UILabel *sdnIDLab;
-@property (weak, nonatomic) IBOutlet UITextField *sdnIdTF;
-@property (weak, nonatomic) IBOutlet UIButton *connectBtn;
-@property (weak, nonatomic) IBOutlet UILabel *serverPortLab;
-
-@property (nonatomic, strong) NSTimer *connectCheckTimer;
-
-@property (nonatomic, strong) GCDAsyncSocket *socket;
-
-@property (nonatomic, strong) GCDAsyncSocket *serverSocket;
-
-@property (nonatomic, assign) BOOL sdnConnected;
-@property (nonatomic, assign) BOOL peerConnected;
-
-@property (nonatomic, assign) NSInteger tcpPort;
-@property (weak, nonatomic) IBOutlet UIButton *sendBtn;
-@property (weak, nonatomic) IBOutlet UILabel *revcLab;
-@property (weak, nonatomic) IBOutlet UITextField *peerPortTF;
-@property (weak, nonatomic) IBOutlet UITextField *messageTF;
-
-@end
-
-@implementation ConnectTestViewController
-
-- (void)viewDidLoad {
-    [super viewDidLoad];
-    
-    self.sdnConnected = NO;
-    self.peerConnected = NO;
-    
-    self.sendBtn.enabled = NO;
-    
-    self.sdnConnectStateLab.text = @"SDN state: Connectting";
-    self.sdnIDLab.text = @"My SDN ID:";
-    
-    RaylinkProxy.sharedManager.delegate = self;
-    
-    initProxyQueue = dispatch_queue_create("init_proxy", 0);
-    
-    NSURL *logUrl = [[NSFileManager.defaultManager URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask].firstObject URLByAppendingPathComponent:@"logs"];
-    
-    if (![NSFileManager.defaultManager fileExistsAtPath:logUrl.path]) {
-        [NSFileManager.defaultManager createDirectoryAtURL:logUrl withIntermediateDirectories:YES attributes:NULL error:NULL];
-    }
-    
-    dispatch_async(initProxyQueue, ^{
-        NSData *sdnInfo = [NSData dataWithContentsOfURL:[[NSBundle.mainBundle bundleURL] URLByAppendingPathComponent:@"planet.1ali_3ry_peer"]];
-        
-        /// 1. 初始化代理库
-        [RaylinkProxy.sharedManager initProxy:logUrl.path rootSdnInfo:sdnInfo];
-    });
-    
-    
-    /// 作为服务端时,启动端口监听
-    self.serverSocket = [[GCDAsyncSocket alloc] initWithDelegate:self delegateQueue:dispatch_get_main_queue()];
-    
-    if ([self.serverSocket acceptOnPort:0 error:NULL]) {
-        self.serverPortLab.text = [NSString stringWithFormat: @"server port: %d", self.serverSocket.localPort];
-        NSLog(@"accept ok");
-    }
-    
-    
-    /// 启动定时器监听 SND 连接状态
-    self.connectCheckTimer = [NSTimer scheduledTimerWithTimeInterval:0.5 repeats:YES block:^(NSTimer * _Nonnull timer) {
-        
-        /// 2. 监听SDN 连接状态
-        bool connected = [RaylinkProxy.sharedManager isSdnConnected];
-        if (self.sdnConnected == connected) {
-            return;
-        }
-        
-        self.sdnConnected = connected;
-        
-        if (self.sdnConnected) {
-            
-            self.sdnConnectStateLab.text = @"SDN state: Connected";
-            self.sdnIDLab.text = [@"My SDN ID: " stringByAppendingString:[RaylinkProxy.sharedManager getSdnId]];
-            
-                
-        } else {
-            self.sdnConnectStateLab.text = @"SDN state: Connectting";
-        }
-        
-        
-    }];
-    
-    
-    
-}
-
-
-- (IBAction)onConnect:(id)sender {
-    
-    if (self.peerConnected == YES) {
-        [self disconnect];
-        return;
-    }
-    
-    if (self.sdnIdTF.text.length <= 0) {
-        return;
-    }
-    
-    if (self.peerPortTF.text.length <= 0) {
-        return;
-    }
-    
-    /// 3. 根据对端的 SDN ID 创建连接
-    [RaylinkProxy.sharedManager createNewConnection:self.sdnIdTF.text];
-    
-    /// 4. 创建 HttpService
-    self.tcpPort = [RaylinkProxy.sharedManager createHttpService:self.sdnIdTF.text];
-        
-    self.socket = [[GCDAsyncSocket alloc] initWithDelegate:self delegateQueue:dispatch_get_main_queue()];
-    
-    /// 6. 添加端口防火墙
-    //[RaylinkProxy.sharedManager addSdnId:self.sdnIdTF.text allowPort:[self.peerPortTF.text intValue]];
-    
-    [self.connectBtn setEnabled:NO];
-    
-    [self.connectBtn setTitle:@"连接中..." forState:UIControlStateDisabled];
-    
-}
-
-- (void)disconnect {
-    [RaylinkProxy.sharedManager closeConnection:self.sdnIdTF.text];
-    [RaylinkProxy.sharedManager closeHttpService:self.sdnIdTF.text];
-    [self.connectBtn setTitle:@"连接" forState:UIControlStateNormal];
-    self.peerConnected = NO;
-}
-
-- (IBAction)onClickSend:(id)sender {
-    
-    if (self.messageTF.text.length <= 0) {
-        return;
-    }
-    
-    [self.socket writeData:[self.messageTF.text dataUsingEncoding:NSUTF8StringEncoding] withTimeout:-1 tag:0];
-    
-}
-
-- (void)socket:(GCDAsyncSocket *)sock didAcceptNewSocket:(GCDAsyncSocket *)newSocket {
-    
-    NSLog(@"didAcceptNewSocket");
-    
-    
-    [newSocket setDelegate:self delegateQueue:dispatch_get_main_queue()];
-    
-    NSThread *revcThread = [[NSThread alloc] initWithBlock:^{
-        
-        while (true) {
-            [newSocket readDataWithTimeout:-1 tag:0];
-            [NSThread sleepForTimeInterval:0.1];
-        }
-    }];
-    
-    [revcThread start];
-    
-}
-
-- (void)onProxyConnected:(NSString *)sdnId status:(int)status {
-    if (status == 0) {
-        /// 6. 等待连接成功回调,创建 TCP socket 连接 HttpService 的端口
-        [self.socket connectToHost:@"127.0.0.1" onPort:self.tcpPort error:NULL];
-        [self.connectBtn setTitle:@"连接成功" forState:UIControlStateDisabled];
-        [self.sendBtn setEnabled:YES];
-    } else {
-        [self.connectBtn setTitle:@"连接中..." forState:UIControlStateDisabled];
-        [self.sendBtn setEnabled:NO];
-    }
-}
-
-- (void)socket:(GCDAsyncSocket *)sock didConnectToHost:(NSString *)host port:(uint16_t)port {
-    
-    NSLog(@"didConnectToHost %d", port);
-    
-    NSThread *thread = [[NSThread alloc] initWithBlock:^{
-        while (true) {
-
-            [self.socket readDataWithTimeout:-1 tag:0];
-            [NSThread sleepForTimeInterval:0.1];
-
-        }
-    }];
-
-    [thread start];
-    
-    /// 7. Socket 连接成功后,通过 socket  发送, self.peerPortTF 为对端服务端口
-    [sock writeData:[[NSString stringWithFormat:@"CONNECT 127.0.0.1:%@ HTTP/1.0\r\n\r\n", self.peerPortTF.text] dataUsingEncoding:NSUTF8StringEncoding] withTimeout:-1 tag:0];
-
-    NSLog(@"readDataToData");
-    
-}
-
-- (void)socket:(GCDAsyncSocket *)sock didWriteDataWithTag:(long)tag
-{
-    NSLog(@"socket:%p didWriteDataWithTag:%ld", sock, tag);
-}
-
-- (void)socket:(GCDAsyncSocket *)sock didReadData:(NSData *)data withTag:(long)tag {
-    
-    
-    if (tag == 0) {
-        
-        NSString *str = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
-        
-        /// 8. 收到包含 `HTTP/1.0 200`的字符串,则认为连接成功。可以正常给对端发消息了
-        if ([str containsString:@"HTTP/1.0 200"]) {
-            NSLog(@"Connected");
-            self.peerConnected = YES;
-            self.connectBtn.enabled = YES;
-            [self.connectBtn setTitle:@"断开连接" forState:UIControlStateNormal];
-        }
-        
-    }
-    
-    self.revcLab.text = [NSString stringWithFormat:@"接收:%@", [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]];
-}
-
-@end

+ 0 - 96
创维盒子/双子星云手机/Vendor/UDP/ConnectTestViewController.xib

@@ -1,96 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21507" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
-    <device id="retina6_1" orientation="portrait" appearance="light"/>
-    <dependencies>
-        <deployment identifier="iOS"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21505"/>
-        <capability name="Safe area layout guides" minToolsVersion="9.0"/>
-        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
-    </dependencies>
-    <objects>
-        <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="ConnectTestViewController">
-            <connections>
-                <outlet property="connectBtn" destination="Xu4-KS-Cgt" id="sWk-hh-xp1"/>
-                <outlet property="messageTF" destination="v8W-3V-eFH" id="7HD-oI-VwF"/>
-                <outlet property="peerPortTF" destination="Yqx-xd-Eg9" id="L4q-53-P3Z"/>
-                <outlet property="revcLab" destination="EIW-7r-YKH" id="Umg-XU-toJ"/>
-                <outlet property="sdnConnectStateLab" destination="lCO-kK-iLI" id="tCh-r1-cp8"/>
-                <outlet property="sdnIDLab" destination="KQH-kr-F17" id="YFS-m5-2eS"/>
-                <outlet property="sdnIdTF" destination="hJa-Le-wrA" id="GUU-IF-Bat"/>
-                <outlet property="sendBtn" destination="K5Z-Tl-Az0" id="GaG-jJ-p3f"/>
-                <outlet property="serverPortLab" destination="2tW-iH-Ud4" id="ryU-fv-qCX"/>
-                <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
-            </connections>
-        </placeholder>
-        <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
-        <view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
-            <rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
-            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-            <subviews>
-                <stackView opaque="NO" contentMode="scaleToFill" fixedFrame="YES" axis="vertical" spacing="8" translatesAutoresizingMaskIntoConstraints="NO" id="Dcj-hf-eLY">
-                    <rect key="frame" x="91" y="153" width="146" height="317"/>
-                    <subviews>
-                        <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="lCO-kK-iLI">
-                            <rect key="frame" x="0.0" y="0.0" width="146" height="20.5"/>
-                            <fontDescription key="fontDescription" type="system" pointSize="17"/>
-                            <nil key="textColor"/>
-                            <nil key="highlightedColor"/>
-                        </label>
-                        <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="server port:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="2tW-iH-Ud4">
-                            <rect key="frame" x="0.0" y="28.5" width="146" height="20.5"/>
-                            <fontDescription key="fontDescription" type="system" pointSize="17"/>
-                            <nil key="textColor"/>
-                            <nil key="highlightedColor"/>
-                        </label>
-                        <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="KQH-kr-F17">
-                            <rect key="frame" x="0.0" y="57" width="146" height="20.5"/>
-                            <fontDescription key="fontDescription" type="system" pointSize="17"/>
-                            <nil key="textColor"/>
-                            <nil key="highlightedColor"/>
-                        </label>
-                        <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="输入对端的SDN ID" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="hJa-Le-wrA">
-                            <rect key="frame" x="0.0" y="85.5" width="146" height="34"/>
-                            <fontDescription key="fontDescription" type="system" pointSize="14"/>
-                            <textInputTraits key="textInputTraits"/>
-                        </textField>
-                        <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="对端端口" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="Yqx-xd-Eg9">
-                            <rect key="frame" x="0.0" y="127.5" width="146" height="34"/>
-                            <fontDescription key="fontDescription" type="system" pointSize="14"/>
-                            <textInputTraits key="textInputTraits" keyboardType="numberPad"/>
-                        </textField>
-                        <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Xu4-KS-Cgt">
-                            <rect key="frame" x="0.0" y="169.5" width="146" height="34.5"/>
-                            <state key="normal" title="Button"/>
-                            <buttonConfiguration key="configuration" style="plain" title="连接"/>
-                            <connections>
-                                <action selector="onConnect:" destination="-1" eventType="touchUpInside" id="MoU-A0-5xR"/>
-                            </connections>
-                        </button>
-                        <textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="v8W-3V-eFH">
-                            <rect key="frame" x="0.0" y="212" width="146" height="34"/>
-                            <fontDescription key="fontDescription" type="system" pointSize="14"/>
-                            <textInputTraits key="textInputTraits"/>
-                        </textField>
-                        <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="K5Z-Tl-Az0">
-                            <rect key="frame" x="0.0" y="254" width="146" height="34.5"/>
-                            <state key="normal" title="Button"/>
-                            <buttonConfiguration key="configuration" style="plain" title="发送"/>
-                            <connections>
-                                <action selector="onClickSend:" destination="-1" eventType="touchUpInside" id="PJ9-zY-1xy"/>
-                            </connections>
-                        </button>
-                        <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="接收:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="EIW-7r-YKH">
-                            <rect key="frame" x="0.0" y="296.5" width="146" height="20.5"/>
-                            <fontDescription key="fontDescription" type="system" pointSize="17"/>
-                            <nil key="textColor"/>
-                            <nil key="highlightedColor"/>
-                        </label>
-                    </subviews>
-                </stackView>
-            </subviews>
-            <viewLayoutGuide key="safeArea" id="Q5M-cg-NOt"/>
-            <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
-            <point key="canvasLocation" x="-670" y="120"/>
-        </view>
-    </objects>
-</document>