摘要: 1.安装软件 sudo apt-get install telnet* 2.创建telnet文件 vim /etc/xinetd.d/telnet telnet内容 1 service telnet 2 { 3 disable = no 4 flags = REUSE 5 socket_type = 阅读全文
posted @ 2020-11-05 19:08 ღ惟吾德馨ღ 阅读(934) 评论(0) 推荐(0)
摘要: << 半碗村传奇 >> 阅读全文
posted @ 2020-10-05 20:35 ღ惟吾德馨ღ 阅读(70) 评论(0) 推荐(0)
摘要: volatile关键字的含义? volatile定义的变量可能会意外的改变,改变它的情况有很多(例如:操作系统,硬件,线程),编译就不会去假设这个值,也就是说每次访问这个变量时,系统就会小心翼翼的去从内存读取这个值,而不是简单的从寄存器中读取这个值。 作用:防止编译器对该变量进行优化。 举例: 1) 阅读全文
posted @ 2020-09-25 13:57 ღ惟吾德馨ღ 阅读(127) 评论(0) 推荐(0)
摘要: 1 //**************************************服务器********************************************** 2 #include <stdio.h> 3 #include <stdlib.h> 4 #include <str 阅读全文
posted @ 2020-09-23 15:50 ღ惟吾德馨ღ 阅读(157) 评论(0) 推荐(0)
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 #include <time.h> 5 #include <sys/types.h> /* See NOTES */ 6 #include <sys/socket.h 阅读全文
posted @ 2020-09-22 10:58 ღ惟吾德馨ღ 阅读(201) 评论(0) 推荐(0)
摘要: Internet历史: ①ARPAnet(阿帕网):采用网络控制协议(Network Control Protocol, NCP); 缺点 ? ②TCP协议:kahn和vinton cerf提出, 缺点 ? 从此产生TCP/IP协议, 网络体系架构: ①OSI模型 7层: 特点:模型本身通用,理想化 阅读全文
posted @ 2020-09-21 14:27 ღ惟吾德馨ღ 阅读(128) 评论(0) 推荐(0)
摘要: 进程间通信: System V IPC对象: ipcs -q:查看消息队列 ipcs -m:查看共享内存 ipcs -s:查看信号灯集 ipcrm -q:删除消息队列 ipcrm -m:删除共享内存 ipcrm -s:删除信号灯集 **:每一个IPC对象都有一个ID,可根据key值得到ID; key 阅读全文
posted @ 2020-09-20 21:56 ღ惟吾德馨ღ 阅读(153) 评论(0) 推荐(0)