Chinaunix首页 | 论坛 | 博客
  • 博客访问: 267202
  • 博文数量: 113
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1044
  • 用 户 组: 普通用户
  • 注册时间: 2015-02-15 16:09
文章分类

全部博文(113)

文章存档

2016年(5)

2015年(108)

我的朋友

发布时间:2016-03-25 21:43:32

NFS 配置:/etc/init.d/rpcbind restart/etc/rc.d/init.d/nfs restart$ vim /etc/exports/mnt/koji       *(rw,async,no_root_squash,no_subtree_check)$ /etc/init.d/rpcbind start && chkconfig --level 2345 rpcbind on$ /etc/init.d/nfs start  && chkconfig --level 2345 nf.........【阅读全文】

阅读(2086) | 评论(0) | 转发(1)

发布时间:2016-02-11 02:08:48

pthread_exit()pthread_join()#include<pthread.h>#include<stdio.h>#include<string.h>#include<stdlib.h>struct stu{int num;char name[10];};void *fun(void *arg){int i;struct stu *s;s=malloc(sizeof(struct stu));s->num=100;strcpy(s->name,"hello");for(;;){printf("pthread is running ...\n".........【阅读全文】

阅读(2113) | 评论(0) | 转发(0)

发布时间:2016-02-02 23:00:09

通信模型,里面用到了setsockopt函数很不理解,看了msdn这个函数讲解的特别号,就转过来了,方便以后的查阅。。closesocket(一般不会立即关闭而经历socket: setsockopt(s,SOL_SOCKET ,SO_REUSEADDR,(constchar*)&bReuseaddr,sizeof(BOOL));2.soket在调用TIME_WAIT的过程: setsockopt(s,SOL_SOCKET,SO_DONTLINGE.........【阅读全文】

阅读(2064) | 评论(0) | 转发(0)

发布时间:2016-01-28 15:12:29

Installing the GNU C compiler and GNU C++ compilerTo install the gcc and g++ compilers, you will need the build-essential package. This will also install GNU make. build-essential contains a list of packages which are essential for building Ubuntu packages including gcc compiler, make and .........【阅读全文】

阅读(1987) | 评论(0) | 转发(0)

发布时间:2016-01-21 00:32:13

ibevent多线程使用事项    在linux平台上使用c开发网络程序的同志们一般情况下都对鼎鼎大名的libevent非常的熟悉了。但是一些新进入此领域的new new people们对此都是一头雾水。原本的迷茫再加上开源软件一贯的“帮助文件”缺失作风,让我们这些新手们显的非常的无助。幸好有一些热心的朋友们帮忙,才化险.........【阅读全文】

阅读(2491) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册