//
// UploadDelegate.h
// iPhoneFTP
//
// Created by Zhou Weikuan on 10-6-15.
// Copyright 2010 sino. All rights reserved.
//
#import <Foundation/Foundation.h>
enum {
kUploadBufferSize = 8000,
};
@interface UploadDelegate : NSObject {
NSString * userName;
NSString * passWord;
NSString * serverPath;
uint64_t serverSize;
NSString * localPath;
NSString * fileName;
uint64_t localSize;
uint64_t bufferOffset;
uint64_t bufferLimit;
uint8_t _buffer[kUploadBufferSize];
CFWriteStreamRef ftpStream;
NSInputStream * fileStream;
NSString * strStatus;
CFRunLoopRef runLoop;
}
- (uint8_t *)buffer;
- initWithLocalPath:(NSString *)localStr withServer:(NSString*)serverStr withName:(NSString*)theName withPass:(NSString*)thePass;
- initWithLocalPath:(NSString *)localStr withServer:(NSString*)serverStr;
- (void)parseLocalPath:(NSString*)localStr withServer:(NSString*)serverStr;
- (void)start;
- (void)threadMain:(id)arg;
- (void)resume;
- (void)resumeRead;
- (void)stopWithStatus:(NSString *)statusString;
// - (void)stream:(NSStream *)aStream handleEvent:(NSStreamEvent)eventCode;
@property (nonatomic, retain) NSString * serverPath;
@property (nonatomic, retain) NSString * userName;
@property (nonatomic, retain) NSString * passWord;
@property (nonatomic, retain) NSString * localPath;
@property (nonatomic, retain) NSString * fileName;
@property (nonatomic, assign) CFWriteStreamRef ftpStream;
@property (nonatomic, retain) NSInputStream * fileStream;
@property (nonatomic, retain) NSString * strStatus;
@property (nonatomic, assign) uint64_t serverSize;
@property (nonatomic, assign) uint64_t localSize;
@property (nonatomic, assign) uint64_t bufferOffset;
@property (nonatomic, assign) uint64_t bufferLimit;
@end
iPhoneFTP.zipIOS应用例子源码下载
版权申诉
64 浏览量
2022-03-06
03:22:25
上传
评论
收藏 56KB ZIP 举报
yxkfw
- 粉丝: 76
- 资源: 2万+
最新资源
- 财政学知识点归纳 & 复习题及答案
- 2023-04-06-项目笔记 - 第一百二十八阶段 - 4.4.2.126全局变量的作用域-126 -2024.05.09
- Excel表格筛选工具
- liang新版nacos本地使用方法.zip
- 基于JSP毕业设计-网络购物中心毕业设计(源代码+论文).zip
- 直流电机电磁计算软件Excel版.xlsx
- 1694jsp宿舍管理系统Myeclipse开发mysql数据库web结构java编程计算机网页项目源码
- 基于JSP毕业设计-数据库连接池的研究与实现(源代码+论文).zip
- Arduino IDE 2.3.2 windows 64位版本
- zookeeper的设计与使用(集群部署,dubbo,分布式锁,master选举,负载均衡,watch,权限等)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈