Skip to content

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

Closed as not planned
Closed as not planned

Description

@PumpkinSeed

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)

Activity

  1. added this to the Unreleased milestone on Jul 13, 2022
  2. seankhliao commented on Jul 13, 2022

    @seankhliao
    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

  3. locked and limited conversation to collaborators on Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions