blob: e3da164e42077a0bdc19a2b099c1ff3bf1f892e8 [file] [log] [blame]
#import <Cocoa/Cocoa.h>
#import "TSocketClient.h"
@implementation TSocketClient
- (id) initWithHostname: (NSString *) hostname
port: (int) port
{
NSInputStream * input = nil;
NSOutputStream * output = nil;
[NSStream getStreamsToHost: [NSHost hostWithName: hostname]
port: port
inputStream: &input
outputStream: &output];
self = [super initWithInputStream: input outputStream: output];
[input open];
[output open];
return self;
}
@end