Nitro is a very fast, flexible, high-level network communication library.
You need:
- Linux or Mac OS X
- redo ( https://github.com/apenwarr/redo )
- 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
If you need to specify a different gcc executable
besides just gcc
, you can define $CC in the environment:
CC=gcc-4.7 redo
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
$
You can find examples in the examples/
directory in the distribution.
Bindings for Python and Haskell coming soon.
Nitro is beta software. Submit bug reports, please!
Jamie Turner jamie@bu.mp @jamwt