git.ithinksw.org
/
ITFoundation.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This whole thing could use a rewrite but whatever
[ITFoundation.git]
/
ITByteStream.h
diff --git
a/ITByteStream.h
b/ITByteStream.h
index
78ab7d9
..
3dce5c6
100755
(executable)
--- a/
ITByteStream.h
+++ b/
ITByteStream.h
@@
-7,23
+7,18
@@
//
#import <Foundation/Foundation.h>
//
#import <Foundation/Foundation.h>
+#import "ITConveniences.h"
@class ITByteStream;
@class ITByteStream;
-@protocol ITByteStreamDelegate <NSObject>
--(oneway void)newDataAdded:(ITByteStream *)sender;
-@end
-
-@interface ITByteStream : NSObject {
+@interface ITByteStream : NSObject <Delegater> {
@public
NSMutableData *data;
@private
NSLock *lock;
@public
NSMutableData *data;
@private
NSLock *lock;
- id <
ITByteStreamDelegate
> delegate;
+ id <
DataReciever
> delegate;
}
}
--(id) initWithStream:(ITByteStream*)stream delegate:(id <ITByteStreamDelegate>)d;
--(id) initWithDelegate:(id <ITByteStreamDelegate>)d;
--(void) setDelegate:(id <ITByteStreamDelegate>)d;
+-(id) initWithStream:(ITByteStream*)stream delegate:(id <DataReciever>)d;
-(int) availableDataLength;
-(NSData*) readDataOfLength:(int)length;
-(NSData*) readAllData;
-(int) availableDataLength;
-(NSData*) readDataOfLength:(int)length;
-(NSData*) readAllData;