4 * Rendezvous network controller
6 * Original Author : Kent Sutherland <ksuther@ithinksw.com>
7 * Responsibility : Kent Sutherland <ksuther@ithinksw.com>
9 * Copyright (c) 2003 iThink Software.
14 #import <Foundation/Foundation.h>
16 #define SERVER_PORT 5712
20 @interface NetworkController : NSObject
22 NSNetService *service;
23 NSNetServiceBrowser *browser;
24 NSMutableArray *remoteServices;
26 NSConnection *serverConnection, *clientConnection;
27 NSSocketPort *serverPort, *clientPort;
28 BOOL serverOn, clientConnected, connectedToServer;
29 ITMTRemote *clientProxy;
31 + (NetworkController *)sharedController;
33 - (void)startRemoteServerSearch;
34 - (void)stopRemoteServerSearch;
36 - (void)setServerStatus:(BOOL)status;
37 - (BOOL)connectToHost:(NSString *)host;
40 - (BOOL)isClientConnected;
41 - (BOOL)isConnectedToServer;
43 - (ITMTRemote *)sharedRemote;
44 - (NSArray *)remoteServices;