• 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
how to just wait a few seconds for a callback to happen?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to just wait a few seconds for a callback to happen?


  • Subject: how to just wait a few seconds for a callback to happen?
  • From: Bob Sabiston <email@hidden>
  • Date: Sun, 1 May 2005 19:54:29 -0500

Hello,

I am using CFSockets to do a little networking for a game. When the game starts, I want it to check and see if a server is already up and running. If it is, then I want the client to send a message to the server and then get some initialization info back.

After I send the message, how can I just have the client wait until it receives its info back? And after a second or two, if nothing comes, to just proceed without it? Is there any way to run the run loop for a couple of seconds in order to give the server a chance to respond, then go on with my setup? I want to avoid setting up once and then setting up again when a callback function comes through.

I hope that made sense.

Thanks for any info.
Bob

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: how to just wait a few seconds for a callback to happen?
      • From: Becky Willrich <email@hidden>
  • Next by Date: Re: how to just wait a few seconds for a callback to happen?
  • Next by thread: Re: how to just wait a few seconds for a callback to happen?
  • Index(es):
    • Date
    • Thread