#import <ITFoundation/ITVirtualMemoryInfo.h>
#import <ITFoundation/ITStringScanner.h>
-#import <ITFoundation/ITAppleEventCenter.h>
\ No newline at end of file
+#import <ITFoundation/ITAppleEventCenter.h>
+#import <ITFoundation/ITInetServerSocket.h>
+#import <ITFoundation/ITInetSocket.h>
\ No newline at end of file
- (id)init;
- (id)initWithDelegate:(id)d;
+- (BOOL)start;
+- (void)stop;
+
- (int)sockfd;
- (NSSet*)clients;
- (id)delegate;
- (short)port;
+
- (void)setServiceType:(NSString*)type useForPort:(BOOL)p;
- (void)setServiceName:(NSString*)name; // generally the computer's AppleTalk name
- (void)setPort:(short)p;
[rndType release];
}
-- (BOOL)registerSocket
+- (BOOL)start
{
if (!rndName || !rndType || !port) return NO;
[ITInetServerSocket registerSocket:self];
--- /dev/null
+//
+// ShowcaseController.h
+// ITFoundation
+//
+// Created by Alexander Strange on Fri Feb 14 2003.
+// Copyright (c) 2003 __MyCompanyName__. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import <ITFoundation/ITFoundation.h>
+
+@interface ShowcaseController : NSObject <ITInetServerSocketOwner> {
+
+}
+
+@end
--- /dev/null
+//
+// ShowcaseController.m
+// ITFoundation
+//
+// Created by Alexander Strange on Fri Feb 14 2003.
+// Copyright (c) 2003 __MyCompanyName__. All rights reserved.
+//
+
+#import "ShowcaseController.h"
+
+
+@implementation ShowcaseController
+- (void)applicationDidFinishLaunching:(NSNotification *)note
+{
+
+ ITInetServerSocket *sock = [[ITInetServerSocket alloc] initWithDelegate:self];
+ NSLog(@"rawr?");
+ [sock setPort:4776];
+ [sock setServiceName:@"Test Rendezvous Service"];
+ [sock setServiceType:@"ittest" useForPort:NO];
+ [sock start];
+}
+
+- (void)newClientJoined:(ITInetSocket*)client
+{
+}
+@end
--- /dev/null
+/*
+ * Showcase_main.m
+ * ITFoundation
+ *
+ * Created by Alexander Strange on Fri Feb 14 2003.
+ * Copyright (c) 2003 __MyCompanyName__. All rights reserved.
+ *
+ */
+
+#import <AppKit/NSApplication.h>
+
+int main(int argc, const char *argv[])
+{
+ return NSApplicationMain(argc,argv);
+}
\ No newline at end of file