suchen

Heim  >  Fragen und Antworten  >  Hauptteil

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、谁能给我一些建议呢?

高洛峰高洛峰2808 Tage vor609

Antworte allen(1)Ich werde antworten

  • 天蓬老师

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

    原生socket就能干了,想当年我还用PHP的Socket原生实现FTP客户端。不难的

    Antwort
    0
  • StornierenAntwort