Skip to content
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: Feature of darwin RFCOMM socket connection #53832

Closed
PumpkinSeed opened this issue Jul 13, 2022 · 1 comment
Closed

x/sys: Feature of darwin RFCOMM socket connection #53832

PumpkinSeed opened this issue Jul 13, 2022 · 1 comment

Comments

@PumpkinSeed
Copy link

I have a working example for the socket connection which is based on linux/unix system. But when I wanted to build it for darwin amd64 I found out that certain parts of my implementation does not exists for darwin amd64 (also for arm64).

This is the main implementation:

import "golang.org/x/sys/unix"
// ...
fd, _ := unix.Socket(unix.AF_BLUETOOTH, unix.SOCK_STREAM, unix.BTPROTO_RFCOMM)
socketAddr := &unix.SockaddrRFCOMM{Addr: str2ba(addr), Channel: 6}
unix.Connect(fd, socketAddr)

The missing parts are the unix.AF_BLUETOOTH, unix.BTPROTO_RFCOMM and the unix.SockaddrRFCOMM. I cloned the github.com/golang/sys repository to find out whether there is something similar, but I didn't find anything which looks like an RFCOMM on darwin.

Question / Feature request

Is there anything what I can use to have the same functionality under darwin amd64/arm64? Also if there is any guide/documentation which details it would be awesome. Also is there a way for quick implementation or hack to make it happen? Is there something what I can help to have it in the x/sys? (Assume I'm not a low-level expert)

@gopherbot gopherbot added this to the Unreleased milestone Jul 13, 2022
@seankhliao
Copy link
Member

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.

For questions please refer to https://github.com/golang/go/wiki/Questions

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Jul 13, 2022
@golang golang locked and limited conversation to collaborators Jul 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants