X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/107e67ed9e5791f210cfaf2185e75ea5b5e84792..7d031ce4bc1ea4d563508687ee2feb6d985c57f9:/NetworkController.h?ds=sidebyside diff --git a/NetworkController.h b/NetworkController.h index ae40030..62f221e 100755 --- a/NetworkController.h +++ b/NetworkController.h @@ -24,11 +24,11 @@ NSMutableArray *remoteServices; NSConnection *serverConnection, *clientConnection; - NSSocketPort *serverPort, *clientPort; + NSSocketPort *clientPort, *serverPort; NSString *remoteHost; BOOL serverOn, clientConnected, connectedToServer; NSData *serverPass, *clientPass; - NetworkObject *clientProxy; + NetworkObject *rootObject, *clientProxy; } + (NetworkController *)sharedController; @@ -36,9 +36,10 @@ - (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;