- 博客(4)
- 资源 (3)
- 收藏
- 关注
转载 socket-listen
摘要:listen函数使用主动连接套接口变为被连接套接口,使得一个进程可以接受其它进程的请求,从而成为一个服务器进程。在TCP服务器编程中listen函数把进程变为一个服务器,并指定相应的套接字变为被动连接。listen函数在一般在调用bind之后-调用accept之前调用,它的函数原型是:#includeint listen(int sockfd, int backl
2013-06-15 11:31:47 388
转载 linux 重定向
1. 标准输入的控制语法:命令例如:mail -s “mail test” [email protected] 题名称为mail test,送给收信人。2. 标准输出的控制语法:命令> 文件将命令的执行结果送至指定的文件中。例如:ls -l > list 将执行“ls -l” 命令的结果写入文件list 中。语法:命令>! 文件将命令的执行结果送至指定的文件中,若文件已
2012-05-16 08:31:31 329
原创 shell note01:some shell combinations
some shell combinationsCTRL + L : Clear the screenCTRL + W : Delete the word starting at cursorCTRL + U : Clear the line i.e. Delete the all words from command lineTab : Auto-complet
2012-05-07 10:28:33 406
原创 error: expected identifier before numeric constant的处理
可能是宏定义与enum的定义的冲突,重定义了。
2012-05-05 10:07:23 1020
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人