1、不借助第三方函式庫,用原生的objective-c如何實作ftp upload?
2、這是官方提供的方案:https://developer.apple.com/library/ios/documentation/Networking/Conceptual/CFNetwork/CFFTPTasks/CFFTPTasks.html#//apple_ref/doc/uid/TP30001132-CH9 -SW2
typedef struct MyStreamInfo {
CFWriteStreamRef writeStream;
CFReadStreamRef readStream;
CFDictionaryRef proxyDict;
SInt64 fileSize;
UInt32 totalBytesWritten;
UInt32 leftOverByteCount;
UInt8 buffer[kMyBufferSize];
} MyStreamInfo;
3、誰能給我一些建議呢?
原生socket就能乾了,想當年我還用PHP的Socket原生實作FTP客戶端。不難的