mirror of
https://github.com/samsonjs/arq_restore.git
synced 2026-03-25 09:25:53 +00:00
28 lines
757 B
Objective-C
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
|