git.ithinksw.org
/
ITFoundation.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
More socket work
[ITFoundation.git]
/
ITByteStream.m
diff --git
a/ITByteStream.m
b/ITByteStream.m
index
eff6eb7
..
4d34eb0
100755
(executable)
--- a/
ITByteStream.m
+++ b/
ITByteStream.m
@@
-64,6
+64,16
@@
return ret;
}
+-(NSData*) readAllData
+{
+ NSData *ret;
+ [lock lock];
+ ret = [data autorelease];
+ data = [[NSMutableData alloc] init];
+ [lock unlock];
+ return ret;
+}
+
-(void) writeData:(NSData*)_data
{
[lock lock];