ofxTcpClient with Telnet

I am trying to connect to a telnet running locally at:, port 2006 to send commands and receive data, for example:


I am very new to the ofxTcpClient extension, so I am not sure how to use the send/receiveRawBytes.

I am using the TcpClientExample at the moment, which I’ve been able to connect to the telnet server with, but when I type in commands nothing returns (a problem with using strings here?). So, how would I send raw commands to telnet and then receive raw data?