Added ITSendAEWithKey, need to fix up a small part of it though.
[ITFoundation.git] / ITByteStream.m
index b5554e1..664e1a0 100755 (executable)
     [super dealloc];
 }
 
--(void) setDelegate:(id <ITByteStreamDelegate>)d
+-setDelegate:(id <DataReciever>)d
 {
+    id old = delegate;
     [delegate release];
     delegate = [d retain];
+    return old;
+}
+
+-delegate
+{
+    return delegate;
 }
 
 -(int) availableDataLength
     [delegate newDataAdded:self];
 }
 
--(void) writeBytes:(char *)b len:(long)length
+-(void) writeBytes:(in char *)b len:(long)length
 {
     [lock lock];
     [data appendBytes:b length:length];