arq_restore/http/CFHTTPInputStream.h
Stefan Reitshamer 40ef06c9d2 Switched from NSURLConnection API to CFHTTP API.
I made this switch in Arq 2.6.3 last March, and it has been much more stable.
2012-08-20 10:00:49 -04:00

28 lines
757 B
Objective-C

//
// CFHTTPInputStream.h
// Arq
//
// Created by Stefan Reitshamer on 3/16/12.
// Copyright 2012 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@class CFHTTPConnection;
@protocol HTTPConnectionDelegate;
@class NetMonitor;
@interface CFHTTPInputStream : NSObject {
CFHTTPConnection *conn;
NSInputStream *inputStream;
id <HTTPConnectionDelegate> httpConnectionDelegate;
int throttleType;
int throttleKBPS;
NSTimeInterval lastReceivedTime;
NSUInteger lastReceivedLength;
NSUInteger totalReceivedLength;
NetMonitor *netMonitor;
}
- (id)initWithCFHTTPConnection:(CFHTTPConnection *)theConn data:(NSData *)theData httpConnectionDelegate:(id <HTTPConnectionDelegate>)theHTTPConnectionDelegate;
@end