Re: Creating multiple OT Contexts
Re: Creating multiple OT Contexts
- Subject: Re: Creating multiple OT Contexts
- From: Quinn <email@hidden>
- Date: Thu, 10 Apr 2003 10:41:03 +0100
At 19:57 -0700 9/4/03, Bob Cook wrote:
OT appears to support a number of initializations as long as you
give "kInitOTForExtensionMask" and rigorously use the returned
client context value in future calls. At least its working for me.
Don't forget to close the context when you are finished. This works
for me, in fact I never use the "kInitOTForApplicationMask" because
my in-house networking library doesn't want to know the details of
how its used (which sort of sounds like your situation too).
That's a perfectly valid approach. The only thing that
kInitOTForApplicationMask buys you (and this is only for traditional
Mac OS) is that the context is automatically shut down when
ExitToShell is called. If you use kInitOTForExtensionMask you have
to make sure that you shut down the context when your app quits, even
if it quits unexpectedly. Typically I do this in my fragment
termination routine.
btw OT contexts are all explained in detail in DTS Technote 1173.
<
http://developer.apple.com/technotes/tn/tn1173.html>
S+E
--
Quinn "The Eskimo!" <
http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.