telnet客户端

CSocketDx

CSocketDx class is used to establish TCP connection. It has 3 functions:

CSocketDx(char *,int);
~CSocketDx();
int Create();
int Connect();
SOCKET TelnetConnect();

CSocketRx

CSocketRx class is used to receive data. It has only one thread.

CSocketRx();
CSocketRx(SOCKET,HANDLE&);
virtual ~CSocketRx();
static DWORD RdTh(CSocketRx *);

CSocketTx

CSocketTx class is used to send data. It has only one thread.

CSocketTx(SOCKET,HANDLE&);
virtual ~CSocketTx();
static DWORD SendTh(CSocketTx*);

CProtocolRx

CProtocolRx class is used to implement the Telnet protocol.

inline void yesreply(SOCKET server, _verb verb,_option option);
inline void noreply(SOCKET server, _verb verb,_option option);
inline void askfor(SOCKET server, _verb verb,_option option);
void TelentProtcol(SOCKET server,unsigned char code);


telnet_src.zip
名称 代码(十进制)
E O F 2 3 6 文件结束符
S U S P 2 3 7 挂起当前进程(作业控制)
A B O RT 2 3 8 异常中止进程
E O R 2 3 9 记录结束符
S E 2 4 0 子选项结束
N O P 2 4 1 无操作
D M 2 4 2 数据标记
B R K 2 4 3 中断
I P 2 4 4 中断进程
A O 2 4 5 异常中止输出
AY T 2 4 6 对方是否还在运行?
E C 2 4 7 转义字符
E L 2 4 8 删除行
G A 2 4 9 继续进行
S B 2 5 0 子选项开始
W I L L 2 5 1 选项协商(图2 6 - 9)
W O N T 2 5 2 选项协商
D O 2 5 3 选项协商
D O N T 2 5 4 选项协商
I A C 2 5 5 数据字节2 5 5

WS2_32.lib 库

你可能感兴趣的:(telnet)