Re: OTConnect() returns kOTOutStateErr
Re: OTConnect() returns kOTOutStateErr
- Subject: Re: OTConnect() returns kOTOutStateErr
- From: Igor Garnov <email@hidden>
- Date: Fri, 11 Feb 2005 17:21:58 +0300
Hello
of course you should always wait for Mr. Quinn's reply, as he's the
most experienced in the field, but as a start here's my idea:
if you set the endpoint to non-blocking state, it's assumed to return
immediately after every call, and the result can tell you what's
happened - has it failed or not.
In my personal opinion, it's enough to set the endpoint non-blocking.
Try commenting the line 'OTUseSyncIdleEvents(tempSocket, true);' and
see what happens.
Actually, there's no need for you to use
'OTUseSyncIdleEvents(tempSocket, true);' since you're choosing polling
instead of being notified in the endpoint completion routine.
Igor
_______________________________________________
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