mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36424 72102866-910b-0410-8b05-ffd578937521
20 lines
473 B
Objective-C
20 lines
473 B
Objective-C
#import "ObjectTesting.h"
|
|
#import <Foundation/Foundation.h>
|
|
#import <Foundation/NSStream.h>
|
|
|
|
int main()
|
|
{
|
|
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
|
NSInputStream *t1;
|
|
NSOutputStream *t2;
|
|
NSArray *a;
|
|
NSHost *host = [NSHost hostWithName:@"localhost"];
|
|
|
|
[NSStream getStreamsToHost:host port:80 inputStream:&t1 outputStream:&t2];
|
|
|
|
a = [NSArray arrayWithObjects:t1, t2, nil];
|
|
test_NSObject(@"NSStream", a);
|
|
|
|
[arp release]; arp = nil;
|
|
return 0;
|
|
}
|