Getting -3208 from OTBind
Getting -3208 from OTBind
- Subject: Getting -3208 from OTBind
- From: Mark Thomas <email@hidden>
- Date: Thu, 13 Mar 2003 12:56:36 +0000
- Organization: Coderus Ltd
Hi,
Sorry for all the questions, but got another one, Any body got an idea why
this code works perfectly on MacOS-X, but on MacOS 9.x, seems to fail with
-3208 ( Bad file number).
mListenerUDP = OTOpenEndpointInContext( OTCreateConfiguration(kUDPName), 0,
nil, &err, NULL);
err= SetFourByteOption(mListenerUDP, INET_IP, IP_REUSEADDR, TRUE);
err = OTBind(mListenerUDP, &bindRequest, &bindRequest );
#ifdef DEBUG_INFO
if ( err!= noErr || inAddr.fPort != cBROADCAST_PORT )
{
DebugStr("\pProblem trying to allocate HOST broadcast Listener.");
}
#endif
I'm guessing the OTOpenEndpointInContext has failed for some reason, as I
guess OTBind failed because the endpoint was bad.
Any ideas.
Thanks
Mark.
_______________________________________________
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.