会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
川页科技
上一页
1
···
7
8
9
10
11
12
13
14
15
···
22
下一页
2019年4月21日
tcp_connect函数
摘要: #include #include #include #include #include int tcp_connect(const char *host, const char *serv) { int sockfd, n; struct addrinfo hints, *res, *ressave;...
阅读全文
posted @ 2019-04-21 13:35 soldierback
阅读(2001)
评论(0)
推荐(0)
编辑
udp_connect函数
摘要: #include #include #include #include #include int udp_connect(const char *host, const char *serv) { int sockfd, n; struct addrinfo hints, *res, *ressave...
阅读全文
posted @ 2019-04-21 13:34 soldierback
阅读(421)
评论(0)
推荐(0)
编辑
udp_server函数
摘要: #include #include #include #include #include int udp_server(const char *host, const char *serv, socklen_t *addrlenp) { int sockfd, n; struct addrinfo hi...
阅读全文
posted @ 2019-04-21 13:34 soldierback
阅读(535)
评论(0)
推荐(0)
编辑
udp_client函数
摘要: #include #include #include #include #define SA struct sockaddr int udp_client(const char *host, const char *serv, SA **saptr, socklen_t *lenp) { int sockf...
阅读全文
posted @ 2019-04-21 13:33 soldierback
阅读(631)
评论(0)
推荐(0)
编辑
gai_strerror函数
摘要: 一、函数原型 二、由getaddrinfo返回的非0错误值的名字和含义
阅读全文
posted @ 2019-04-21 12:02 soldierback
阅读(1358)
评论(0)
推荐(0)
编辑
getaddrinfo函数
摘要: 一、功能 对于IPv4和IPv6均适用,可以处理名字到地址以及服务到端口这两种变换,返回的是一个sockaddr结构而不是一个地址队列 二、函数原型 (1)hostname:是一个主机名或地址串 (2)service:是一个服务名或十进制端口号数串 (3)hints:一个空指针或指向某个addrin
阅读全文
posted @ 2019-04-21 11:43 soldierback
阅读(672)
评论(0)
推荐(0)
编辑
SCTP一到多式流分回射服程序
摘要: 一、服务器程序 二、客户端程序
阅读全文
posted @ 2019-04-21 11:21 soldierback
阅读(516)
评论(0)
推荐(0)
编辑
gethostbyname和gethostbyaddr
摘要: 一、gethostbyname函数原型 二、hostent结构 三、关于全局整体变量h_errno 当gethostbyname发生错误时,它不设置errno变量,而是将全局变量h_errno设置为<netdb.h>中定义的下列常值之一: (1)HOST_NOT_FOUND; (2)TRY_AGAI
阅读全文
posted @ 2019-04-21 11:16 soldierback
阅读(565)
评论(0)
推荐(0)
编辑
2019年4月20日
getservbyname和getservbyport
摘要: 一、getservbyname函数原型 二、servent结构 三、getservbyport函数原型
阅读全文
posted @ 2019-04-20 11:40 soldierback
阅读(387)
评论(0)
推荐(0)
编辑
2019年4月17日
SCTP接口模型
摘要: 一、接口模型 (1)SCTP套接字分为:一到一套接字和一到多套接字; (2)一到一套接字对应一个单独的SCTP关联(一个SCTP关联是两个系统之间的一个连接,不过可能由于多宿原因而在每个断点设计不止 一个IP地址),这种映射类似于TCP套接字和TCP连接的对应关系; (3)对应一到多套接字,一个给定
阅读全文
posted @ 2019-04-17 21:17 soldierback
阅读(402)
评论(0)
推荐(0)
编辑
上一页
1
···
7
8
9
10
11
12
13
14
15
···
22
下一页
公告
导航
博客园
首页
新随笔
新文章
联系
订阅
管理