
读书笔记之《Linux高性能服务器编程》
主要解读Linux网络编程高级API
楼兰公子
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
系统支持的最大线程数
cat /proc/sys/kernel/threads-max原创 2020-01-02 17:47:20 · 175 阅读 · 0 评论 -
getconf GNU_LIBPTHREAD_VERSION
@localhost:~$ getconf 用法:getconf [-v 规范] 变量名 [路径名] getconf -a [路径名称] @localhost:~$ getconf GNU_LIBPTHREAD_VERSION NPTL 2.23原创 2020-01-02 17:33:33 · 332 阅读 · 0 评论 -
libevent 在Ubuntu1604上编译arm-linux-gnueabihf7.4版本出错
[ 28%] Built target event_core_static /home/mmm/下载/libevent-master/bufferevent_openssl.c:66:10: fatal error: openssl/ssl.h: 没有那个文件或目录 #include <openssl/ssl.h> ^~~~~~~~~~~~~~~ compilat...原创 2020-01-02 16:20:25 · 222 阅读 · 0 评论 -
网络大小端判断
#include <stdio.h> void byteorder() { union { short value; char union_bytes[ sizeof( short ) ]; } test; test.value = 0x0102; if ( ( test.union_bytes[ 0 ] == 1 ) && ( test.unio...原创 2019-12-31 14:52:20 · 186 阅读 · 0 评论 -
以太网ARP请求/应答报文格式
原创 2019-12-26 16:23:00 · 1292 阅读 · 0 评论 -
端口号的解释
ICMP,TCP报文段和UDP数据报通过其头部的16位的端口号字段来区分上层应用程序-----他们都是通过IP协议 例如DNS协议对应端口号 53 HTTP对应80 知名应用程序的端口号都是可以在/etc/services中查询 具体对应端口号如下 # Network services, Internet style # # Note that it is presently t...原创 2019-12-26 10:19:28 · 3233 阅读 · 0 评论 -
以太网帧类型字段
1.0x800 IP数据报 2.0x806 ARP请求或应答报文 3.0x835 RARP请求或应答报文原创 2019-12-26 10:14:15 · 1256 阅读 · 0 评论 -
UDP&&TCP在数据副本方面的区别
1.TCP模块写入数据后,TCP模块首先把这些数据复制到与该链接对应的TCP内核发送缓冲区中,然后TCP模块调用IP模块地宫的服务,传递的参数包括TCP头部TCP头部信息和TCP发送缓冲区中的数据 2.UDP则无需为应用层数据保存副本,因为是不可靠服务,当UDP数据包被成功发送之后,UDP内核缓冲区中的该数据报就被丢弃了,如果应用检测到数据丢失,则重新发送 ...原创 2019-12-26 10:04:06 · 177 阅读 · 0 评论 -
修改本机最大文件描述符数量
查看当前用户最大文件描述符数 ulimit -n 临时性修改 ulimit -SHn max-file-number 永久性修改 sudo vim /etc/security/limits.conf hard nofile max-file-number soft nofile max-file-number 系统级文件描述符修改 临时 sysc...原创 2019-12-23 00:28:56 · 523 阅读 · 0 评论 -
一.Linux高性能服务器(TCP/IP协议族群)
1.主要协议 2.封装 3.分用 4.测试 5.ARP协议工作原理 6.DNS工作原理 7.socket与TCP/IP原创 2019-12-20 09:28:40 · 158 阅读 · 0 评论