OTRegisterAsClientInContext returns -3167
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.