-
Notifications
You must be signed in to change notification settings - Fork 18k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/sys/unix: Possible to create an RFCOMM socket? #22211
Comments
You'd most likely have to implement a new sockaddr type, as I did here: golang/sys@d67a327. I don't have time to immediately dig in, but perhaps this can lead you in the right direction. |
Thanks Matt, with that I was able to create a functioning socket. |
@dangerousHobo how did you manage to get that working? Can't see something submitted in gerrit... |
I'll reopen this for tracking, until a CL closes it. |
Change https://golang.org/cl/75971 mentions this issue: |
Adds the required SockaddrRFCOMM type for working with Linux's bluetooth rfcomm sockets. Fixes golang/go#22211 Change-Id: I5d4a253c7a691066e10b751ee10c35eec00e388f
Adds the required SockaddrRFCOMM type for working with Linux's bluetooth rfcomm sockets. Fixes golang/go#22211 Change-Id: I5d4a253c7a691066e10b751ee10c35eec00e388f
Adds the required SockaddrRFCOMM type for working with Linux's bluetooth rfcomm sockets. Fixes golang/go#22211 Change-Id: I5d4a253c7a691066e10b751ee10c35eec00e388f
Change https://golang.org/cl/122457 mentions this issue: |
Hello,
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?I'm trying to create an RFCOMM socket but not able to find a socket address type which works. Theres the Sockaddr... types available but none appear to support a Bluetooth RFCOMM socket. I'm assuming its possible because
unix.AF_BLUETOOTH
andunix.BTPROTO_RFCOMM
are defined.What am I missing?
Thanks for your help!
The text was updated successfully, but these errors were encountered: