u-codalist-z...@aetey.se writes:

> On Fri, Aug 01, 2014 at 02:27:28PM -0400, Jan Harkes wrote:
>> >                 ph = m->GetPrimaryHost(&ph_ix);
>
>> >             ph = ntohl(m->GetPrimaryHost(&ph_ix)->s_addr);
>
>> Yes both are correct, different uses. The non-converted one is only used
>> client-side, the one that is converted is shipped off to the server and
>> was used at some point in Coda's past to reduce the number of callbacks
>> that were kept. Only the 'primary host' replica used to track client
>> callbacks, now all replicas do.
>
> Thanks a lot Jan! This helps.

But perhaps doxygen-style (semantically) function header docs explaining
calling conventions would be good, too.

Attachment: pgpwtT6gUoLdv.pgp
Description: PGP signature

Reply via email to