code: def create_bcm_socket(channel):
      
      s = socket.socket(PF_CAN, socket.SOCK_DGRAM, CAN_BCM)
      if HAS_NATIVE_SUPPORT:
          s.connect((channel,))
      else:
          addr = get_addr(s, channel)
          libc.connect(s.fileno(), addr, len(addr))
      return s
docs: create a broadcast manager socket and connect to the given interface