nix-rust / nix

Rust friendly bindings to *nix APIs
MIT License
2.68k stars 668 forks source link

Add AF_BLUETOOTH and associated socket bits #196

Open RAOF opened 9 years ago

RAOF commented 9 years ago

Bluetooth (at least on Linux) works over regular old boring sockets with a AF_BLUETOOTH socket type and various BTPROTO_FOO flags.

I'd like to have access to these, and it seems sensible to have them in nix.

kamalmarhubi commented 8 years ago

@RAOF this sounds like a good fit in nix. Could you add the relevant constants in the libc crate first? Or file an issue to do so?

kench commented 8 years ago

I'm interested in picking this (task of adding the relevant constants) up. Stay tuned.

Susurrus commented 7 years ago

@kench Any interest in taking up this task?

JuanPotato commented 4 years ago

https://github.com/nix-rust/nix/blob/master/src/sys/socket/addr.rs#L102

It looks like AF_BLUETOOTH was added shortly after that last message here. Any reason to keep this issue still open?

asomers commented 4 years ago

That commit only defined it for ios and macos. Nix still doesn't define it for other OSes. And I'm not sure if AF_BLUETOOTH is useful by itself, or if it needs a more Rusty interface.