DO over network
DO over network
- Subject: DO over network
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Sat, 23 Oct 2004 17:57:43 +0200
I have a server which talks to some clients over TCP-sockets.
When I stop the server, I do:
1. tell all clients about my imminent demise (which prompts them to cut
and invalidate their connection)
2. usleep( 33333 )
3. [ connection invalidate]
4. [ receivePort invalidate]
When I omit step 2, a subsequent re-start of the server via:
[ [ NSSocketPort alloc] initWithTCPPort: portNbr ]
will return nil for the next minute. After this it will work ok.
When I sleep for less than 0.03 seconds the re-start sometimes fails.
What is going on here? What am I doing wrong?
Gerriet.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden