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

Added lua/command line tools #16

Merged
merged 7 commits into from
May 2, 2016

Conversation

HeinrichHartmann
Copy link
Collaborator

@HeinrichHartmann HeinrichHartmann commented Apr 29, 2016

  • fqclient.lua

Tools:

  • fq-receiver
  • fq-sender
  • fq-proxy

Implementation is copied from route_contains mutatis mutandis.

Use memmem to compare routes and payloads.

memmem needs `_GNU_SOURCE` to be set. cf:
http://man7.org/linux/man-pages/man3/memmem.3.html
@HeinrichHartmann
Copy link
Collaborator Author

The Makefile is preliminary. This works for me on Linux on the specific luajit version. I am not sure how to make this portable.

For installation I need the following:

  1. luajit needs to be in /usr/local/bin/ so that scripts can find it via hashbang
  2. fq-client to be on the LUA_PATH of the systems luajit
  3. fq-receiver, fq-sender, fq-proxy need to be in $PATH

@postwait postwait merged commit 6a5fdd7 into circonus-labs:master May 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants