上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 18 下一页
摘要: export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin 阅读全文
posted @ 2019-01-03 14:45 insistYuan 阅读(1169) 评论(0) 推荐(0) 编辑
摘要: printf函数: 运行结果:test_num : 123 error函数: 运行结果:Error: main failure 函数: 运行结果: string :aint :1char :b 函数: 运行结果: tmp : 1tmp : 2tmp : 3tmp : 4 和上边的函数进行对比: 运行 阅读全文
posted @ 2018-12-26 19:02 insistYuan 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 我们知道va_start,va_arg,va_end是在stdarg.h中被定义成宏的,由于1、硬件平台的不同 2、编译器的不同,所以定义的宏也有所不同。 在ANSI C中,这些宏的定义位于stdarg.h中,典型的实现如下: typedef char *va_list; va_start宏,获取可 阅读全文
posted @ 2018-12-26 18:43 insistYuan 阅读(12484) 评论(0) 推荐(1) 编辑
摘要: set numberset shiftwidth=4set softtabstop=4set tabstop=4set expandtab"set hlsearchset noerrorbellsset smartindentset autoindentset nobackupsyntax onfi 阅读全文
posted @ 2018-12-17 15:09 insistYuan 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 4 int main(void) 5 { 6 FILE *fp; 7 char line[512], tmp[256]; 8 char *receive_flowrate, *transmit_flowrate, *net_card_name; 9 long total_count_flowr... 阅读全文
posted @ 2018-11-23 14:07 insistYuan 阅读(228) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include int main (int argc, const char * argv[]) { struct ifaddrs * ifAddrStruct=NULL; void * tmpAddrPtr=NULL; getifaddrs(&ifAd... 阅读全文
posted @ 2018-11-23 13:45 insistYuan 阅读(601) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 // #include 8 #include 9 // #include 10 11 #define IF_NAME "eth0" 12 13 int main(void) 14 { 15 struct ifr... 阅读全文
posted @ 2018-11-23 13:42 insistYuan 阅读(1358) 评论(0) 推荐(0) 编辑
摘要: HTTP 协议中共定义了八种方法或者叫“动作”来表明对 Request-URI 指定的资源的不同操作方式,具体介绍如下: OPTIONS:返回服务器针对特定资源所支持的HTTP请求方法。也可以利用向Web服务器发送'*'的请求来测试服务器的功能性。 HEAD:向服务器索要与GET请求相一致的响应,只 阅读全文
posted @ 2018-11-16 12:20 insistYuan 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 1. 客户发起情况到服务器网卡; 2. 服务器网卡接受到请求后转交给内核处理; 3. 内核根据请求对应的套接字,将请求交给工作在用户空间的Web服务器进程 4. Web服务器进程根据用户请求,向内核进行系统调用,申请获取相应资源(如index.html) 5. 内核发现web服务器进程请求的是一个存 阅读全文
posted @ 2018-11-16 11:57 insistYuan 阅读(1539) 评论(0) 推荐(0) 编辑
摘要: 一、 HTTP请求和响应步骤 图片来自:理解Http请求与响应 以上完整表示了HTTP请求和响应的7个步骤,下面从TCP/IP协议模型的角度来理解HTTP请求和响应如何传递的。 二、TCP/IP协议 TCP/IP协议模型(Transmission Control Protocol/Internet 阅读全文
posted @ 2018-11-15 19:26 insistYuan 阅读(4953) 评论(0) 推荐(1) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 18 下一页