
Socket
code329859664
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
socket客户端
#include "Winsock2.h" #include "string.h" #include "stdio.h" #include "time.h" #include "stdarg.h" #include "stdlib.h" #pragma comment(lib,"Ws2_32") int main(){ char buf[100原创 2012-06-05 10:16:10 · 383 阅读 · 0 评论 -
socket基础
sock是对通信端点的抽象;类似于“文件” 小端字节: 英特尔 linux 0x1234;34存在低地址上; 网络上: 大端地址; //sock初始化所需要的地址 struct sockaddr { unsigned short sa_family; /* 地址家族, AF_xxx */ char sa_data[14]; /*14字节协议地址*原创 2012-06-05 10:14:35 · 329 阅读 · 0 评论 -
socket服务器端
//服务器代码 #include "Winsock2.h" #include "string.h" #include "stdio.h" #include "time.h" #include "stdarg.h" #include "stdlib.h" #pragma comment(lib,"Ws2_32"); void errexit(cons原创 2012-06-05 10:15:46 · 443 阅读 · 0 评论