
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
--
This file includes an RDoc hack so that links can be made to open up into a new frame rather then the current frame.
The "trick" is to append ``"target="_top'' to the URL.
++
= Ruby/KATCP
== Introduction
Ruby/KATCP is a Ruby extension for communicating via the Karoo Array Telescope Control Protocol (KATCP). More information about KATCP can be found at the {CASPER Wiki}[http://casper.berkeley.edu/wiki/KATCP"target="_top], including the {KATCP specification }[http://casper.berkeley.edu/wiki/images/1/11/NRF-KAT7-6.0-IFCE-002-Rev4.pdf"target="_top] in PDF format.
== Features
Provides a base KATCP client supporting the functionality described in the KATCP specification.
Provides an extended KATCP client to support the tcpborphserver2 KATCP server implementation on {ROACH }[http://casper.berkeley.edu/wiki/ROACH"target="_top] boards.
Automatically provides support for all current and any future KATCP request types through the use of Ruby's +method_missing+ feature.
Handles all escaping and unescaping of text transferred over KATCP.
Provides convenient and flexible ways of converting packed binary data to various numerical formats, including Array and {NArray }[http://narray.rubyforge.org/"target="_top] objects.
Plays nicely with +irb+, the interactive Ruby shell.
== Installation
{Ruby/KATCP}[http://rb-katcp.rubyforge.org/"target="_top] can be installed via RubyGems[http://www.rubygems.org/"target="_top]:
gem install katcp
Ruby/KATCP was developed using Ruby 1.8.6 and 1.8.7. It has not been tested against Ruby 1.9 (yet).
== Documentation
Documentation is available on the {Ruby/KATCP Homepage}[http://rb-katcp.rubyforge.org/"target="_top] and is also installed locally as part of the gem-based installation. To view the documentation locally, run
gem server
then point your browser to http://localhost:8808/ and navigate to (and follow) the katcp [rdoc] link. You can get more information about RubyGem's documenation server by running:
gem help server
== Example
This example script, listdev.rb, can be used to list the devices on a given ROACH host...
#!/usr/bin/env ruby
require 'rubygems' require 'katcp'
raise "\nusage: #{$0} HOSTNAME" unless ARGV[0]
roach = KATCP::RoachClient.new(ARGV[0])
resp = roach.listdev
devices = resp.lines[0..-2].map {|l| l[1]}
puts devices
== Current Limitations
FAQs
Unknown package
We found that katcp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.