Endian bug in KNetwork::KIpAddress

Nadeem Hasan nhasan at nadmm.com
Sat Jul 22 15:42:28 BST 2006


On Saturday 22 July 2006 09:18, Thiago Macieira wrote:

> Please don't #include <arpa/inet.h> in the public header.
>
> Add a new function that returns the ntohl of the IPv4 address and call
> ntohl from it.

Try #2.

I had to use the underscore as ntohl() is defined as a macro.
-- 
Nadeem Hasan (nhasan-at-nadmm.com)
GPG Fingerprint: 7141 0B1C 9CAF 624D 307F F8EF 6C0C 753E DD3A 0F53
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ksocketaddress2.diff
Type: text/x-diff
Size: 2628 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060722/5af17ae3/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060722/5af17ae3/attachment.sig>


More information about the kde-core-devel mailing list