搜尋

首頁  >  問答  >  主體

objective-c - object-c實作ftp upload

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、誰能給我一些建議呢?

高洛峰高洛峰2850 天前637

全部回覆(1)我來回復

  • 天蓬老师

    天蓬老师2017-05-02 09:26:55

    原生socket就能乾了,想當年我還用PHP的Socket原生實作FTP客戶端。不難的

    回覆
    0
  • 取消回覆