how to just wait a few seconds for a callback to happen?
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