X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/d11efc8d287ca1643e9ac6a7b561cad7cd659bda..0948b4b6166bbee8caefca1278b6551d264068a8:/NetworkController.h diff --git a/NetworkController.h b/NetworkController.h index 9a4024b..62f221e 100755 --- a/NetworkController.h +++ b/NetworkController.h @@ -15,7 +15,7 @@ #define SERVER_PORT 5712 -@class ITMTRemote; +@class NetworkObject; @interface NetworkController : NSObject { @@ -24,11 +24,11 @@ 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; @@ -36,14 +36,15 @@ - (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