Bidirectional communication, netstring parser