Re: Open Transport questions
Re: Open Transport questions
- Subject: Re: Open Transport questions
- From: Quinn <email@hidden>
- Date: Thu, 7 Oct 2004 18:04:56 +0100
At 12:04 +0100 27/9/04, Mark Thomas wrote:
I'm updating some existing OT code, and couldn't find if you have a
endPoint in asynch mode, when you do an OTConnect what are the messages
which are send to your notifier when you have been connected.
T_CONNECT
I.e. The server has done an OTAccept on your request.
Actually, with TCP connections are accepted in kernel, so you get the
T_CONNECT before the remote machine calls OTAccept. This little
gotcha is documented in DTS Q&A NW24 "Synchronous TCP OTConnect
Client Clal Completes Before Server Responds".
<http://developer.apple.com/qa/nw/nw24.html>
Also any idea's why my OTInetAddressToName seems to just block and never
come back, I'm calling this within a notifier should that matter.
Is the InetSvcRef in async mode? It's not legal to make a sync call
in a notifier and trying to do so is likely to cause a deadlock like
this.
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
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