用下列命令编译程序:gcc -Wall telnet-server -o telnetd
启动telnet服务:
./telnetd --daemon #以root用户身份在23端口(即telnet默认端口服务)
或
./telnetd -P 7838 #以非root用户身份
然后开启一个新终端,telnet连接自己的服务器试试,如:
telnet 127.0.0.1 或 telnet 127.0.0.1 7838
不需要输入用户名和密码,直接以启动telnet服务的用户的身份登录系统了。
输入系统命令体验一下吧!
Compile the program with the following command:gcc -Wall telnet-server -o telnetd (2020-03-02, C/C++, 3KB, 下载0次)
telnet源代码 实现了telnet的基本功能,可以登录telnet服务器。
Telnet source code to achieve the basic functions of the Telnet, you can log on to telnet server. (2016-11-07, C/C++, 18KB, 下载27次)
里面包含了telnet的客户端和服务器端
use this code to telnet,including client and server (2009-05-05, C/C++, 131KB, 下载32次)
线程池的源文件和头文件用于网络编程的服务器端处理多个客户请求
ThreadPool.h and ThreadPool.cpp deal with serve for many of sclients (2009-04-21, C/C++, 6KB, 下载17次)