-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>On Mon, 8 Jun 2015 05:06:34 +0000
>naruto canada <[email protected]> wrote:
> if platform.machine() == "ppc":
> channel=int("0x0a000000", 0)
> else:
> channel=10 # OBEX File Transfer
>
> Now the question: which package or library is responsible for
> endianness conversion?
> Right now, the stack looks like this (only in my imagination):
> kernel <-> libc <-> dbus <-> (libusb?) <-> bluez <-> (dbus-glib?) <->
> Python <-> pybluez <-> PyOBEX <-> Application Code
I don't have experience hacking either USB, bluetooth or OBEX (I deal
mostly with "mid-range" interfaces), so I can only speak
theoretically. And theoretically, what is "channel"? A string or a
number? And, in particular, where is the code that you changed?
This snippet of code implies that whatever it comes out of is the thing
that is interested in channel's value, meaning that it is the one that
should call htonl() and ntohl().
- --
Svi moji e-mailovi su kriptografski potpisani. Proverite ih.
All of my e-mails are cryptographically signed. Verify them.
- --
You don't need an AI for a robot uprising.
Humans will do just fine.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)
iQIcBAEBAgAGBQJVdY0SAAoJEKa4cgqNx31/DrEP/ix1zNYoMRc0Gd3YxHUHlcQo
s4L35ge3ieXAILviZB43k1FRWdf98B61s3QIsJzTjfFesGAZaxoNihOyt1PRnSZY
WhvogjzoHHHsQoWCQFoB97uhE3/26Ybdu7u8qhXBrmVnd9mRUvQ2SEfVFAmQ2iLq
KWRCKXiWM8osVHLDSLB0RYEv8Ftf8E7v7cAjRDnGIPCvENK3H75oQtExzEYRpZAq
Z3IlHLfQtmCQdwNSwJ1659907aTTIQDnYWcUi84JobX14AtoB3BrqX5bHNNvTDEG
2NvZQ9SRqEh82+HVzHInmgqyBZVa9U84k7FOd7DH2XRfLVtHG1kbs84QvyI63qe0
9CFYUjwR0Xq6qh5UZaRbmLYtiG4yqhRPZNAEfBtbXRUP5Hwjb3j4mfPx0pGkl2Kz
8mg/VEhlJzWvnEevPGsAOjQerZkOLH/RcBFx2xUssx9sdSiRneoTAXf332Lxccbw
s30+LgvESGKiQB0gtdv1zB/Apnfz7PV+hXFGqQWzak2bCHvVoDWmPX+NkhewFiii
FdbWHVm+36IfVCz+cyZjcwkDgqZoHxHQSmzxuWeOhkpBI97dd/FUgqj/xYgkkS0H
cJj4fgESRasHuO1lRxdOUtgzSDE559HahzPySi/iCg9Bcozq/JqumCAs80EIHBkw
zP+LXwPw+kazj29tHOBk
=8Jy0
-----END PGP SIGNATURE-----
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page