![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
socket
文章平均质量分 86
chuncanL
这个作者很懒,什么都没留下…
展开
-
io多路复用 select
io多路复用 select原创 2017-04-08 12:13:17 · 505 阅读 · 0 评论 -
计算机网络--运输层
运输层(传输层),解决计算机程序到计算机程序之间的通信问题,即端对端的通信,向高层屏蔽下面网络核心的细节 引入原因:增加复用和分用的功能,消除网络层的不可靠信,提供可靠的,与实际使用的网络无关的信息传输 tcp/ip运输层的两个协议: 面向数据报协议UDP( User Datagram Protocol):提供无连接服务 传输控制协议TCP(Transmission Contr原创 2017-03-20 09:37:56 · 821 阅读 · 0 评论 -
socket基础
IPv4套接字地址结构 通用套接字 IPv6套接子地址结构 值-结果参数 字节排序大小端 判断大小端函数 主机字节序与网络字节序转换函数 字节操纵函数 地址转换函数 inet_aton inet_addr and inet_ntoa inet_pton and inet_ntop Functions ExampleIPv4套接字地址结构IPv4套接字地址结构以“sockaddr_in”命名,定义在头原创 2017-04-08 16:49:48 · 300 阅读 · 0 评论 -
tcp基本套接字编程函数
基本套接字函数1、socket()#include <sys/socket.h> int socket (int family, int type, int protocol); //Returns: non-negative descriptor if OK, -1 on error2、connect函数TCP客户使用connect函数来建立与tcp服务器的连接原创 2017-04-09 13:42:19 · 586 阅读 · 0 评论