c/c++ library for the nstrct protocol