]> Dogcows Code - chaz/thecheat/blobdiff - CheatListener.m
The Cheat 1.1.2
[chaz/thecheat] / CheatListener.m
index 40c4eb034938f8e760b49413746bb95cac244b9f..1f3869ee88745346ce0510eb9ed12e726b7d0129 100644 (file)
@@ -68,7 +68,7 @@
 
        if ( (sockfd = socket( family, SOCK_STREAM, 0 )) == -1 )
        {
-               NSLog( @"ERROR: failed to start server because socket() failed" );
+               CMLog( @"ERROR: failed to start server because socket() failed" );
                [rootProxy listenerError:@"Network Error" message:@"Server couldn't start.  Local can't be cheated."];
                return;
        }
 
                if ( setsockopt( sockfd, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(int) ) == -1 )
                {
-                       NSLog( @"ERROR: failed to start server because setsockopt() failed" );
+                       CMLog( @"ERROR: failed to start server because setsockopt() failed" );
                        [rootProxy listenerError:@"Network Error" message:@"Server couldn't start.  Local can't be cheated."];
                        return;
                }
 
                if ( bind( sockfd, (struct sockaddr *)(&addr), sizeof(struct sockaddr) ) == -1 )
                {
-                       NSLog( @"ERROR: failed to start server because bind() failed" );
+                       CMLog( @"ERROR: failed to start server because bind() failed" );
                        [rootProxy listenerError:@"Network Error" message:@"The cheat server could not start, probably because the port is already in use.  Local can not be cheated."];
                        return;
                }
 
                if ( bind( sockfd, (struct sockaddr *)(&addr), sizeof(addr) ) == -1 )
                {
-                       NSLog( @"ERROR: failed to start server because bind() failed" );
+                       CMLog( @"ERROR: failed to start server because bind() failed" );
                        [rootProxy listenerError:@"Network Error" message:@"The cheat server could not start, probably because the path is already in use.  Local can not be cheated."];
                        return;
                }
 
        if ( listen( sockfd, 50 ) == -1 )
        {
-               NSLog( @"ERROR: failed to start server because listen() failed" );
+               CMLog( @"ERROR: failed to start server because listen() failed" );
                [rootProxy listenerError:@"Network Error" message:@"Server couldn't start.  Local can't be cheated."];
                return;
        }
 {
        int                                             result;
 
-       NSLog( @"LISTENER start" );
+       CMLog( @"LISTENER start" );
 
        if ( listenRemote )
        {
                }
        }
 
-       NSLog( @"LISTENER close" );
+       CMLog( @"LISTENER close" );
 
        [rootProxy listenerDisconnected];
 }
This page took 0.018642 seconds and 4 git commands to generate.