Skip to content

Latest commit

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

AMP

C implementation of the uber simple AMP protocol.

Example

char*args[] = { "some", "stuff", "here" };
// encodechar*buf=amp_encode(args, 3);
// decode headeramp_tmsg= {0};
amp_decode(&msg, buf);
assert(1==msg.version);
assert(3==msg.argc);
// decode argsfor (inti=0; i<msg.argc; ++i) {
char*arg=amp_decode_arg(&msg);
printf("%d : %s\n", i, arg);
}

Implementations

  • c: this library (~10m ops/s)
  • node ~(1.5m ops/s)

License

MIT

About

Abstract Message Protocol C implementation

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages