tnetstrings implementation for C++