Re: Need sleuth for UDP blues.
Re: Need sleuth for UDP blues.
- Subject: Re: Need sleuth for UDP blues.
- From: Mike Miller <email@hidden>
- Date: Thu, 25 Mar 2004 00:32:27 -0700
Before you remove the Enter/Leave notifier calls make sure that your code
doesn't call the notifier directly - not particularly good form but I've
seen it done. Matt's right that they aren't needed when the notifier is
called by OT but if your code calls the notifier directly you'll need these
calls or a wrapper that makes the calls before calling your notifier.
>
From: Graham Parkinson-Morgan <email@hidden>
>
Date: Wed, 24 Mar 2004 21:21:01 -0800
>
To: email@hidden
>
Subject: Re: Need sleuth for UDP blues.
>
>
Erk. Seems that replying goes to Matt rather than back to the list.
>
>
> On receiving a T_DATA event, you need to keep calling OTRcvUData()
>
> until it returns a kOTNoDataErr. You can also use OTCountDataBytes()
>
> to check if there is any outstanding data.
>
>
>
>
That was the glaringly obvious point that I missed. I went back to the
>
documentation and there is that line at the end of the explanation of
>
OTRcvUData, plain as the snout on my face, and I must have read that
>
paragraph about 4 times today, so many thanks!
>
>
>> On OSX the OTNotifyProc tops and tails itself with an OTEnterNotifier/
>
>> OTLeaveNotifier critical section in case that is important).
>
>
>
> That's unnecessary. Those calls are used when you want protected access
>
> to a data structure that's also touched by the notifier. They block any
>
> calls to the OT notifier until you release the synchronization
>
> primitive.
>
>
And out they go. Thanks once more.
>
Good to find this list.
>
_______________________________________________
>
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.
_______________________________________________
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.