#include<stdio.h> #include<stdlib.h> #include<string.h> #include<unistd.h> #include<sys/time.h> #include<arpa/inet.h> #include<netdb.h> #define ICMP_S ...
分类:
编程语言 时间:
2020-01-11 20:08:36
阅读次数:
92
学了一些linux下的网络相关的命令,但是网络本身是啥,不知道啊, 所以只好找个ccna的网络知识,学一学,太难了我 网络种类: 以太网 ARPA FR帧中继 frame relay ATM交换机 网络范围: 局域网 广域网(也就俗称的因特网) 网络定义:通过物理线路将所有的终端设备连接到一起,并实 ...
分类:
其他好文 时间:
2020-01-10 18:56:17
阅读次数:
106
1 /* 2 * epoll基于非阻塞I/O事件驱动 3 */ 4 #include <stdio.h> 5 #include <sys/socket.h> 6 #include <sys/epoll.h> 7 #include <arpa/inet.h> 8 #include <fcntl.h> ...
分类:
其他好文 时间:
2019-11-05 21:32:22
阅读次数:
93
传送门 "Luogu" 解题思路 考虑把22个字符状压下来,易知合法情况就是状态中之多有一个1,这个可以暴力一点判断23次。 然后后就是 dsu on the tree 了。 细节注意事项 + 咕咕咕 参考代码 cpp include include include include include ...
分类:
其他好文 时间:
2019-10-27 10:52:03
阅读次数:
57
server 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 #include <unistd.h> 5 #include <arpa/inet.h> 6 #include <sys/socket.h> 7 8 9 ...
分类:
系统相关 时间:
2019-10-21 16:27:19
阅读次数:
123
网络序,主机序学习网络序,主机序总是迷迷糊糊的。需要整理一下。千言万语,不如代码来的实在。哈哈,说干就干。#include<stdio.h>#include<stdlib.h>#include<arpa/inet.h>inthost_order(){unsignedlonga=0x12345678;unsignedchar*p=(unsignedchar*)(&
分类:
其他好文 时间:
2019-10-19 11:20:48
阅读次数:
187
Arpa and an exam about geometry time limit per test 2 seconds time limit per test memory limit per test 256 megabytes memory limit per test input stan ...
分类:
其他好文 时间:
2019-10-13 15:02:24
阅读次数:
100
title "CF741B" 简化题意: 有 $n$ 个人 $(1 $n$ 个人之间有 $m(1\leqslant m\leqslant min(\frac{n(n 1)}{2}, 10^5))$ 个关系。第 $i$ 个关系由两个数字 $x_i$ 和 $y_i$ 组成,表示第 $x_i$ 个人和第 ...
分类:
其他好文 时间:
2019-09-27 16:29:29
阅读次数:
91
#include <stdio.h> #include <sys/socket.h> #include <sys/types.h> #include <netinet/in.h> #include <arpa/inet.h> #include <unistd.h> #include <ctype.h... ...
分类:
Web程序 时间:
2019-08-23 22:25:20
阅读次数:
105
1 Socket套接字 不断Socket套接字由远景研究规划局(Advanced Research Projects Agency, ARPA)资助加里福尼亚大学伯克利分校的一个研究组研发。其目的是将TCP/IP协议相关软件移植到UNIX类系统中。设计者开发了一个接口,以便应用程序能简单地调用该接口 ...
分类:
其他好文 时间:
2019-07-18 13:54:14
阅读次数:
98