Skip to content

edahlgren/nitro

 
 

Repository files navigation

Nitro

Nitro is a very fast, flexible, high-level network communication library.

http://gonitro.io

Build

You need:

  1. Linux or Mac OS X
  2. redo ( https://github.com/apenwarr/redo )
  3. libev development libraries installed

Then:

Build Nacl

$ redo nacl

Note: this could take 5-20 minutes

Build Nitro

$ redo

Run the Nitro test suite

$ redo check

Install Nitro

$ sudo redo install

Build Note

If you need to specify a different gcc executable besides just gcc, you can define $CC in the environment:

CC=gcc-4.7 redo

Using Nitro

Nitro uses pkg-config; so after you're installed, just do something like:

$ cat test.c
#include <nitro.h>

void main() {
        nitro_runtime_start();
}
$ gcc `pkg-config --cflags nitro` test.c `pkg-config --libs nitro`
$ ./a.out
$

Examples

You can find examples in the examples/ directory in the distribution.

Bindings

Bindings for Python and Haskell coming soon.

Docs

http://docs.gonitro.io

Status

Nitro is beta software. Submit bug reports, please!

Author

Jamie Turner jamie@bu.mp @jamwt

About

Queueing/Networking Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 83.2%
  • JavaScript 15.6%
  • Other 1.2%