# tcpiptest **Repository Path**: wangmimo/tcpiptest ## Basic Information - **Project Name**: tcpiptest - **Description**: No description available - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-16 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 设计任务: 任意选用一种编程环境,设计一套RS232或者tcp的通讯协议,2端通讯(以下称为A.B两端) A.发出指令Hello,I am Tom,等待B的应答. B.接收到A的指令,判断对端是谁,如果是TOM,回复Hi,I am SAMTUAM,password 1qazxsw2,等待A的回复. A.等到B的应答后,判断对端是不是SAMTUAM,如果是,检测密码是不是能匹配。如果能匹配,就回复Come in,My Friend! B.接收到A的应答后,打印信息Succeed。 结束 使用方法: 命令行启动 TCPServer 端口号 TCPClient 127.0.0.1 端口号 如:TCPServer 123 TCPClient 127.0.0.1 123