telnet类,使用例子
#include "Telnet.h"
CTelnet myTelnet;
myTelnet.IP = _T("192.168.3.1");
ret = myTelnet.Init();
str = myTelnet.TelnetRecvDate();
str = "root\r\n";
memset(buf, 0, sizeof(buf));
strncpy(buf, str, str.GetLength());
myTelnet.TelnetSendData(buf, str.GetLength());
1