equal
deleted
inserted
replaced
83 serverQuit = YES; |
83 serverQuit = YES; |
84 } |
84 } |
85 |
85 |
86 // launch the preview here so that we're sure the tcp channel is open |
86 // launch the preview here so that we're sure the tcp channel is open |
87 pthread_t thread_id; |
87 pthread_t thread_id; |
88 pthread_create(&thread_id, NULL, (void *)GenLandPreview, (void *)port); |
88 pthread_create(&thread_id, NULL, (void *(*)(void *))GenLandPreview, (void *)port); |
89 pthread_detach(thread_id); |
89 pthread_detach(thread_id); |
90 |
90 |
91 DLog(@"Waiting for a client on port %d", port); |
91 DLog(@"Waiting for a client on port %d", port); |
92 while (!serverQuit) { |
92 while (!serverQuit) { |
93 /* This check the sd if there is a pending connection. |
93 /* This check the sd if there is a pending connection. |