X-Git-Url: http://git.ithinksw.org/ITFoundation.git/blobdiff_plain/d7b4e9008bca3278755f8b96c0ea9d5e3c94c39d..1d23d1181a753fffef7a9d28db4b0b0546bd0032:/ShowcaseController.m diff --git a/ShowcaseController.m b/ShowcaseController.m index 2efe0a4..d121bb6 100755 --- a/ShowcaseController.m +++ b/ShowcaseController.m @@ -7,21 +7,41 @@ // #import "ShowcaseController.h" +#import "ITInetSocket.h" +#import +#import @implementation ShowcaseController -- (void)applicationDidFinishLaunching:(NSNotification *)note +- (void)awakeFromNib +{ + server = [[ITInetServerSocket alloc] initWithDelegate:self]; + [server setPort:1338]; + [server setServiceType:@"ittest" useForPort:NO]; + [server setServiceName:[(NSString*)SCDynamicStoreCopyComputerName(NULL,NULL) autorelease]]; + [server start]; + [ITInetSocket startAutoconnectingToService:@"ittest" delegate:self]; +} + +- (void) finishedConnecting:(ITInetSocket *)sender { + [sender disconnect]; +} + +- (void) errorOccured:(ITInetSocketError)err during:(ITInetSocketState)state onSocket:(in ITInetSocket*)sender +{ +} + +- (void) dataReceived:(ITInetSocket *)sender { - - ITInetServerSocket *sock = [[ITInetServerSocket alloc] initWithDelegate:self]; - NSLog(@"rawr?"); - [sock setPort:4776]; - [sock setServiceName:@"Test Rendezvous Service"]; - [sock setServiceType:@"ittest" useForPort:NO]; - [sock start]; +} + +- (void) newDataAdded:(ITByteStream*)sender +{ + } - (void)newClientJoined:(ITInetSocket*)client { + } @end