![]() |
IOS Streaming Browser 1.0
An IOS streaming browser to stream the display to others or to a projector
|
00001 #import <Foundation/Foundation.h> 00002 #import "HTTPResponse.h" 00003 00004 @class HTTPConnection; 00005 00006 // Implements HTTPResponse protocol 00007 @interface HTTPFileResponse : NSObject <HTTPResponse> 00008 { 00009 00010 /** 00011 00012 **/ 00013 HTTPConnection *connection; 00014 00015 00016 /** 00017 The path to the file 00018 **/ 00019 NSString *filePath; 00020 00021 /** 00022 The length of the file 00023 **/ 00024 UInt64 fileLength; 00025 00026 /** 00027 The file offset 00028 **/ 00029 UInt64 fileOffset; 00030 00031 /** 00032 Whether the file response has been aborted 00033 **/ 00034 BOOL aborted; 00035 00036 /** 00037 The file descriptor 00038 **/ 00039 int fileFD; 00040 00041 /** 00042 The file buffer 00043 **/ 00044 void *buffer; 00045 00046 /** 00047 The buffer size 00048 **/ 00049 NSUInteger bufferSize; 00050 } 00051 00052 /** 00053 Initialize the HTTPFile response with a filepath and connection 00054 param NSSTring 00055 param HTTPConnection 00056 returns id 00057 **/ 00058 - (id)initWithFilePath:(NSString *)filePath forConnection:(HTTPConnection *)connection; 00059 00060 /** 00061 Gets the file path 00062 returns NSString 00063 **/ 00064 - (NSString *)filePath; 00065 00066 @end