• 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
OTRegisterAsClientInContext returns -3167
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OTRegisterAsClientInContext returns -3167


  • Subject: OTRegisterAsClientInContext returns -3167
  • From: Marc Stibane <email@hidden>
  • Date: Mon, 19 Jan 2004 23:15:10 +0100

I am porting some working networking code from MacOS 9 to X. The code
starts as simple as this:


OSStatus err;
OTNotifyUPP notify = NewOTNotifyUPP(MyNotifier);

err = InitOpenTransportInContext(kInitOTForExtensionMask, &gOTcontext);
if (err) return err;
err = OTRegisterAsClientInContext("\pFesh",notify, gOTcontext);
if (err) return err;
gOTsync_services = OTOpenInternetServicesInContext(
kDefaultInternetServicesPath, 0, &err, gOTcontext);
if (err) return err;

However, the second OT call OTRegisterAsClientInContext() fails with
-3167 (kOTNotSupportedErr).
Neither this list's archives nor googling gave me a hint what might be
wrong. MoreIsBetter/MoreOpenTransport has a file OTClassicContextTest.c,
which almost does the same, but with kInitOTForApplicationMask. Since my
code is a PDE (Mach-O CFPlugin) I need to use kInitOTForExtensionMask.

What can I do?

Marc Stibane
Fesh! email@hidden
Kurf|rstenstr. 154 tel +49-30-3990 2690
10785 Berlin, Germany mobil +49-173-6522 422


In a world without walls and fences,
who needs windows and gates?
_______________________________________________
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: OTRegisterAsClientInContext returns -3167
      • From: Quinn <email@hidden>
  • Prev by Date: Re: macnetworkprog digest, Vol 3 #618 - 14 msgs
  • Next by Date: Re: TCP connection timeout
  • Previous by thread: Re: macnetworkprog digest, Vol 3 #618 - 14 msgs
  • Next by thread: Re: OTRegisterAsClientInContext returns -3167
  • Index(es):
    • Date
    • Thread