cocoaTouch/GameSetup.m
changeset 3221 3e6586c1ab4f
parent 3199 1a9938a27677
child 3312 6d8f1c76756d
--- a/cocoaTouch/GameSetup.m	Wed Mar 31 22:02:12 2010 +0000
+++ b/cocoaTouch/GameSetup.m	Wed Mar 31 22:54:28 2010 +0000
@@ -14,6 +14,7 @@
 #include <sys/sysctl.h>
 
 #define BUFFER_SIZE 256
+#define debug(format, ...) CFShow([NSString stringWithFormat:format, ## __VA_ARGS__]);
 
 @implementation GameSetup
 
@@ -31,6 +32,10 @@
         return nil;
 }
 
+-(NSString *)description {
+    return [NSString stringWithFormat:@"ipcport: %d\nsockets: %d,%d\n teams: %@\n systemSettings: %@",ipcPort,sd,csd,teams,systemSettings];
+}
+
 -(void) dealloc {
     [teams release];
     [systemSettings release];