Author mark-roberts
Recipients
Date 2006-12-30.02:15:27
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Hmmm, yes, I see a problem.  At the very least, I think we may be wanting some consistency between the acceptance of ints and longs.  Also, I think we should return an unsigned long instead of just a long (which can be negative).

I've got a patch right now to make htonl, ntohl, htons, and ntohs never return a negative number.  I'm rather waffling to the idea of whether we should accept negative numbers at all in any of the functions.  The behavior is undefined, and it is, afterall, better not to guess what a user intended.

However, consistency should be a desirable goal, and we should accept make the interface consistent for both ints and longs.

Mark
History
Date User Action Args
2007-08-23 14:50:48adminlinkissue1619659 messages
2007-08-23 14:50:48admincreate