![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
网络编程
linux国富
这个作者很懒,什么都没留下…
展开
-
socket编程实例(源码)
本实例使用面向连接协议的客户/服务器模式,其流程如图2.3所示: 图2.3 面向连接的应用程序流程图 服务器方程序: 客户方程序: #include #include #define DATA “half a league, half a league ...” main(argc, argv) int argc; char *argv[ ]; {转载 2014-04-15 09:02:56 · 855 阅读 · 0 评论 -
网络包几种格式struct ethhdr、ether_header、iphdr、tcphdr、udphdr
************************eth的结构**************************************struct ethhdr {unsigned char h_dest[ETH_ALEN];unsigned char h_source[ETH_ALEN];__be16 h_proto;} __attribute__((packed));转载 2014-04-09 09:39:27 · 13699 阅读 · 1 评论