Tuesday, 15 June 2010

Missing socket.AF_BLUETOOTH in Anaconda Python? -


I'm trying to use socket.AF_BLUETOOTH described here:

Python

i 3.3 0.5 :: Mac OS X Anaconda at 10.10.2 2.1.0 (x86_64)

and there is no AF_BLUETOOTH reference socket module:

[1] import socket [2] in: socket.AF socket.AF_APPLETALK socket.AF_INET socket.AF_IPX socket.AF_SNA socket.AF_UNIX socket.AF_DECnet socket.AF_INET6 socket.AF_ROUTE socket.AF_SYSTEM socket.AF_UNSPEC < P> Can anyone help?

PF_BLUETOOTH a protocol family implemented by the Bluetooth module of Linux (from BlueZ). On Linux, you create a Elseepiapi socket device (connected to bind, using socket Sisclon to communicate with reading, writing), and the address is address family AF_BLUETOOTH of. But this is a Linux-only socket type.

On the Mac, you have to use Bluetooth instead of communicating with the device (which uses XPC messages in the blued daemon).

I do not know about a Python wrapper for Core Bluetooth on OS X, but if you want to see this node. How JS can see libraries or in fact these libraries use internal APC messages which can not be static rather than public APIs.


No comments:

Post a Comment