NSMutableArray *remoteServices;
NSConnection *serverConnection, *clientConnection;
- NSSocketPort *clientPort;
+ NSSocketPort *clientPort, *serverPort;
NSString *remoteHost;
BOOL serverOn, clientConnected, connectedToServer;
NSData *serverPass, *clientPass;
- NetworkObject *clientProxy;
+ NetworkObject *rootObject, *clientProxy;
}
+ (NetworkController *)sharedController;
- (int)connectToHost:(NSString *)host;
- (BOOL)checkForServerAtHost:(NSString *)host;
- (BOOL)disconnect;
+- (void)resetServerName;
- (BOOL)isServerOn;
- (BOOL)isClientConnected;
- (BOOL)isConnectedToServer;