2 // ShowcaseController.m
5 // Created by Alexander Strange on Fri Feb 14 2003.
6 // Copyright (c) 2003 __MyCompanyName__. All rights reserved.
9 #import "ShowcaseController.h"
10 #import "ITInetSocket.h"
11 #import <Foundation/NSString.h>
12 #import <SystemConfiguration/SystemConfiguration.h>
15 @implementation ShowcaseController
18 server = [[ITInetServerSocket alloc] initWithDelegate:self];
19 [server setPort:1338];
20 [server setServiceType:@"ittest" useForPort:NO];
21 [server setServiceName:[(NSString*)SCDynamicStoreCopyComputerName(NULL,NULL) autorelease]];
23 [ITInetSocket startAutoconnectingToService:@"ittest" delegate:self];
26 - (void) finishedConnecting:(ITInetSocket *)sender {
30 - (void) errorOccured:(ITInetSocketError)err during:(ITInetSocketState)state onSocket:(in ITInetSocket*)sender
34 - (void) dataReceived:(ITInetSocket *)sender
38 - (void) newDataAdded:(ITByteStream*)sender
43 - (void)newClientJoined:(ITInetSocket*)client