• 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
Re: Creating multiple OT Contexts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating multiple OT Contexts


  • Subject: Re: Creating multiple OT Contexts
  • From: Mark Thomas <email@hidden>
  • Date: Thu, 10 Apr 2003 16:42:32 +0100
  • Organization: Coderus Ltd

Ideally I will be clearing the context out, when I use
kInitOTForExtensionMask mask, but if I crash out, what the worst things that
can happen about from loosing some memory. I guess MacOS-X it wont matter ,
but under classic I loose some system memory.

Thanks
Mark.

> Message: 5
> Date: Thu, 10 Apr 2003 10:41:03 +0100
> To: Macintosh Network Programming <email@hidden>
> From: Quinn <email@hidden>
> Subject: Re: Creating multiple OT Contexts
>
> 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>
_______________________________________________
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.

  • Follow-Ups:
    • Re: Creating multiple OT Contexts
      • From: Quinn <email@hidden>
  • Prev by Date: Re: AppleTalk socket question
  • Next by Date: Bluetooth Acting Like a Modem
  • Previous by thread: Creating multiple OT Contexts
  • Next by thread: Re: Creating multiple OT Contexts
  • Index(es):
    • Date
    • Thread