• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
DO over network
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: DO over network
      • From: Wade Tregaskis <email@hidden>
  • Prev by Date: Binding & Change Count
  • Next by Date: Re: [newbie] Create app as a startup item
  • Previous by thread: Binding & Change Count
  • Next by thread: Re: DO over network
  • Index(es):
    • Date
    • Thread