Skip to content

Commit

Permalink
New class, CKFTPReply that is responsible for representing an FTP rep…
Browse files Browse the repository at this point in the history
…ly. It has a special subclass, CKStreamedFTPReply which allows you to create an empty reply and incrementally fill with data as it arrives, until full.
  • Loading branch information
mikeabdullah committed Mar 29, 2009
1 parent 0c0ed51 commit a6e2318
Show file tree
Hide file tree
Showing 5 changed files with 685 additions and 289 deletions.
6 changes: 5 additions & 1 deletion CKFTPConnection.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH

#import <Foundation/Foundation.h>
#import "CKStreamBasedConnection.h"
#import "CKFTPCommand.h"
#import "CKFTPReply.h"


typedef enum {
FTPTransferModeStream = 0,
Expand Down Expand Up @@ -58,12 +61,13 @@ typedef enum {
FTPNoOpState
} FTPState;


@interface CKFTPConnection : CKStreamBasedConnection
{
@private
NSMutableData *_buffer;

NSMutableString *_commandBuffer;
CKStreamedFTPReply *_currentReply;
NSMutableData *_dataBuffer;

NSTimer *_openStreamsTimeout;
Expand Down
Loading

0 comments on commit a6e2318

Please sign in to comment.