- 博客(3)
- 收藏
- 关注
原创 一步一步学习Android开发——Activity初步(1)
An Activity is an application component that provides a screen with which users can interact in order to do something, such as dial the phone, take a photo, send an email, or view a map. Each activi
2012-03-28 23:29:21
537
原创 Unix中pthread()+fork()+execl()解决system()导致主进程阻塞的例子
#include #include #include #include #include #include void *thread_execl(){ pid_t pid; int ret; if ((pid = fork()) < 0) { printf("fork error\n"); } else if (pid ==
2011-11-24 16:12:15
1606
原创 有关socket AF_UNIX的一点心得
socket=socket.socket(family, type)family参数代表地址家族,比较常用的为AF_INET或AF_UNIX。AF_UNIX用于同一台机器上的进程间通信,AF_INET对于IPV4协议的TCP和UDP 。type参数代表套接字类型,SOCK_STREAM(流套接字)或者SOCK_DGRAM(数据报文套接字)。 其中AF_INET类型有关的例子非常
2011-11-21 13:26:29
11490
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人