![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
【Linux编程之路】
文章平均质量分 76
skyhu215
这个作者很懒,什么都没留下…
展开
-
man 手册加亮
<br /># .bashrc<br /># User specific aliases and functions<br />alias rm='rm -i'<br />alias cp='cp -i'<br />alias mv='mv -i'<br />export PS1='/h:/w/$ '<br />umask 022<br />#export LS_OPTIONS='--color=auto'<br />#eval "`dircolors`"<br /># If not running int原创 2010-08-31 08:56:00 · 468 阅读 · 0 评论 -
linux中select()函数分析
<br />Select在Socket编程中还是比较重要的,可是对于初学Socket的人来说都不太爱用Select写程序,他们只是习惯写诸如connect、accept、recv或recvfrom这样的阻塞程序(所谓阻塞方式block,顾名思义,就是进程或是线程执行到这些函数时必须等待某个事件的发生,如果事件没有发生,进程或线程就被阻塞,函数不能立即返回)。可是使用Select就可以完成非阻塞(所谓非阻塞方式non-block,就是进程或线程执行此函数时不必非要等待事件的发生,一旦执行肯定返回,以返回值的不转载 2010-11-11 09:36:00 · 704 阅读 · 0 评论 -
linux openssl 编程
<br />服务器端实现代码<br />#include <stdio.h> #include <stdlib.h> #include <errno.h> #include <string.h> #include <sys/types.h> #include <netinet/in.h> #include <sys/socket.h> #include <sys/wait.h> #include <unistd.h> #include <arpa/inet.h> #include <op原创 2010-11-23 14:13:00 · 1240 阅读 · 0 评论