- 博客(6)
- 资源 (2)
- 收藏
- 关注
原创 apue和unp的学习之旅09——套接字选项
//-----------------------------------1.getsockopt和setsockopt--------------------------------------#include int getsockopt(int sockfd, int level, int optname, void* optval, socklen_t* optlen);int
2014-04-30 09:43:33 1178
原创 apue和unp的学习之旅08——I/O复用
//------------------------------1.Unix下可用的5种I/O模型的基本区别----------------------------------POSIX有定义,同步IO操作(synchronous I/O Operation)导致请求进程阻塞,直到I/O操作完成。异步I/O操作(asynchrounous I/O operation)不导致请求进程阻塞。
2014-04-21 15:05:01 1809
原创 apue和unp的学习之旅06——简单引出进程和信号的学习
//------------------------------------------------引出信号
2014-04-17 15:14:36 1069
原创 apue和unp的学习之旅05——包裹函数
看到第5章就会发现,作者用了好多包裹函数,封装原始的api,所以不可避免必须学习下unix里出错处理方面的知识。例如:sockfd = Socket(AF_INET, SOCK_STRAM, 0);函数Socket是函数api socket的包裹函数,实现如下:int Socket(int famlily, int type, int protocol){
2014-04-06 11:45:31 1707 2
原创 apue和unp的学习之旅04——基本套接字api
//------------------------------------------socket 函数---------------------------------------#include int socket (int family, int type, int protocol);
2014-04-04 15:33:30 1352
MySpaceWar1.0
2013-12-25
RPG AS3.0 游戏源码
2013-11-27
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人