X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/89e6aacd25d9f355b9dac9c22973e6a5161b3f88..107e67ed9e5791f210cfaf2185e75ea5b5e84792:/NetworkController.h diff --git a/NetworkController.h b/NetworkController.h index de3801b..ae40030 100755 --- a/NetworkController.h +++ b/NetworkController.h @@ -15,7 +15,7 @@ #define SERVER_PORT 5712 -@class ITMTRemote; +@class NetworkObject; @interface NetworkController : NSObject { @@ -25,8 +25,10 @@ NSConnection *serverConnection, *clientConnection; NSSocketPort *serverPort, *clientPort; + NSString *remoteHost; BOOL serverOn, clientConnected, connectedToServer; - ITMTRemote *clientProxy; + NSData *serverPass, *clientPass; + NetworkObject *clientProxy; } + (NetworkController *)sharedController; @@ -35,11 +37,13 @@ - (void)setServerStatus:(BOOL)status; - (BOOL)connectToHost:(NSString *)host; +- (BOOL)checkForServerAtHost:(NSString *)host; - (BOOL)disconnect; - (BOOL)isServerOn; - (BOOL)isClientConnected; - (BOOL)isConnectedToServer; +- (NSString *)remoteHost; -- (ITMTRemote *)sharedRemote; +- (NetworkObject *)networkObject; - (NSArray *)remoteServices; @end