/*
* MenuTunes
- * NetworkController
- * Rendezvous network controller
+ * NetworkController.h
*
- * Original Author : Kent Sutherland <ksuther@ithinksw.com>
- * Responsibility : Kent Sutherland <ksuther@ithinksw.com>
+ * Rendezvous network controller.
*
- * Copyright (c) 2003 iThink Software.
- * All Rights Reserved
+ * Copyright (c) 2003 iThink Software
*
*/
#define SERVER_PORT 5712
-@class ITMTRemote;
+@class NetworkObject;
@interface NetworkController : NSObject
{
NSMutableArray *remoteServices;
NSConnection *serverConnection, *clientConnection;
- NSSocketPort *serverPort, *clientPort;
+ NSSocketPort *clientPort, *serverPort;
NSString *remoteHost;
BOOL serverOn, clientConnected, connectedToServer;
NSData *serverPass, *clientPass;
- ITMTRemote *clientProxy;
+ NetworkObject *rootObject, *clientProxy;
}
+ (NetworkController *)sharedController;
- (void)stopRemoteServerSearch;
- (void)setServerStatus:(BOOL)status;
-- (BOOL)connectToHost:(NSString *)host;
+- (int)connectToHost:(NSString *)host;
- (BOOL)checkForServerAtHost:(NSString *)host;
- (BOOL)disconnect;
+- (void)resetServerName;
- (BOOL)isServerOn;
- (BOOL)isClientConnected;
- (BOOL)isConnectedToServer;
- (NSString *)remoteHost;
-- (ITMTRemote *)sharedRemote;
+- (NetworkObject *)networkObject;
- (NSArray *)remoteServices;
@end