Add server and pipe streams.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22505 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-02-16 19:19:30 +00:00
parent f992463078
commit 748bef1deb
6 changed files with 777 additions and 179 deletions

View file

@ -39,7 +39,7 @@
inputStream: (NSInputStream **)inputStream
outputStream: (NSOutputStream **)outputStream
{
[self notImplemented:_cmd];
[self notImplemented: _cmd];
}
- (void) close
@ -103,25 +103,25 @@
+ (id) inputStreamWithData: (NSData *)data
{
[self notImplemented:_cmd];
[self notImplemented: _cmd];
return nil;
}
+ (id) inputStreamWithFileAtPath: (NSString *)path
{
[self notImplemented:_cmd];
[self notImplemented: _cmd];
return nil;
}
- (id) initWithData: (NSData *)data
{
[self notImplemented:_cmd];
[self notImplemented: _cmd];
return nil;
}
- (id) initWithFileAtPath: (NSString *)path
{
[self notImplemented:_cmd];
[self notImplemented: _cmd];
return nil;
}
@ -149,37 +149,37 @@
+ (id) outputStreamToMemory
{
[self notImplemented:_cmd];
[self notImplemented: _cmd];
return nil;
}
+ (id) outputStreamToBuffer: (uint8_t *)buffer capacity: (unsigned int)capacity
{
[self notImplemented:_cmd];
[self notImplemented: _cmd];
return nil;
}
+ (id) outputStreamToFileAtPath: (NSString *)path append: (BOOL)shouldAppend
{
[self notImplemented:_cmd];
[self notImplemented: _cmd];
return nil;
}
- (id) initToMemory
{
[self notImplemented:_cmd];
[self notImplemented: _cmd];
return nil;
}
- (id) initToBuffer: (uint8_t *)buffer capacity: (unsigned int)capacity
{
[self notImplemented:_cmd];
[self notImplemented: _cmd];
return nil;
}
- (id) initToFileAtPath: (NSString *)path append: (BOOL)shouldAppend
{
[self notImplemented:_cmd];
[self notImplemented: _cmd];
return nil;
}
@ -197,3 +197,35 @@
@end
@implementation GSServerStream
+ (id) serverStreamToAddr: (NSString*)addr port: (int)port
{
[self notImplemented: _cmd];
}
+ (id) serverStreamToAddr: (NSString*)addr
{
[self notImplemented: _cmd];
}
- (id) initToAddr: (NSString*)addr port: (int)port
{
[self notImplemented: _cmd];
return nil;
}
- (id) initToAddr: (NSString*)addr
{
[self notImplemented: _cmd];
return nil;
}
- (void) acceptWithInputStream: (NSInputStream **)inputStream
outputStream: (NSOutputStream **)outputStream
{
[self subclassResponsibility: _cmd];
}
@end