Skip to content
Test TCP in ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
spec
.gitignore
.jrubyrc
Gemfile
Guardfile
LICENSE
README.md
Rakefile
ttcp.gemspec

README.md

ttcp (Test TCP) - Benchmarking Tool and Simple Network Traffic Generator

This is a ruby version of the original C ttcp program.

This tool aims to be a drop in replacement for the original C version, with interoperable networking and command line options. ie: you can have the C and ruby versions talk to each other.

http://www.pcausa.com/Utilities/pcattcp.htm

Installation

Run $ gem install ttcp.

Usage

Similar to the original TTCP program, run a receiver on one machine and a transmitter on another, in that order:

And:

For more command line options run:

Dependencies

Runtime dependencies:

  • only ruby std libraries

Development dependencies:

  • bundler
  • rake
  • rpsec
  • ci_reporter (for use with jenkins)

Optionally:

  • guard
  • guard-rspec

Compatibility

  • MRI ruby 1.8.7
  • MRI ruby 1.9.2
  • JRuby (tested in 1.9 compatibility mode)

Contributing

  1. Fork
  2. Install dependencies by running $ bundle install
  3. Write tests and code
  4. Make sure the tests pass by running $ rake test
  5. Push and send a pull request on GitHub

Known issues

  • Tests don't seem to run in JRuby 1.6.5, but the TTCP program works itself.

Credits

Special thanks to the Mike Muuss and Terry Slattery and other contributors of the original TTCP program.

Copyright

Copyright © 2012 Matt Connolly. Released under the MIT license. See LICENSE.

You can’t perform that action at this time.