Re: Getting -3208 from OTBind
Re: Getting -3208 from OTBind
- Subject: Re: Getting -3208 from OTBind
- From: Steve Kalkwarf <email@hidden>
- Date: Thu, 13 Mar 2003 09:45:20 -0500
>
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.
You set err three times before looking at it. Did the call to
OpenEndpoint fail? The SetFourByteOption?
In the call to OTBind, you pass &bindRequest for both the reqAddr and
retAddr. Did you mean to do that?
Speaking of which, what is your bindRequest structure initialized to?
--
Steve Kalkwarf
<email@hidden>
_______________________________________________
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.