Chinaunix首页 | 论坛 | 博客
  • 博客访问: 611719
  • 博文数量: 150
  • 博客积分: 1132
  • 博客等级: 少尉
  • 技术积分: 2067
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-11 16:46
文章分类

全部博文(150)

文章存档

2015年(15)

2014年(75)

2013年(4)

2012年(56)

发布时间:2014-11-24 23:07:42

#include #include int *pa = NULL;void * fn_thread1(void * c);int main(void){    pthread_t tid;    int err = 0;.........【阅读全文】

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

发布时间:2014-11-20 13:44:27

-s 选项:Snarf  snaplen bytes of data from each packet rather than the default of 68 (with SunOS's NIT, the minimum is actually 96).Setting snaplen to 0 means use the required length to catch whole packets.......【阅读全文】

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

发布时间:2014-11-20 13:35:03

一、制作补丁:diff -urP from-file to-fileIf  from-file  is  a directory and to-file is not, diff compares the file in from-file whose file name is that of to-file, and vice versa.If both from-file and to-file are directories, diff compares corresponding files in both director.........【阅读全文】

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

发布时间:2014-10-29 18:38:45

1. socket 的阻塞与非阻塞的含义:When  the  message  does not fit into the send buffer of the socket, send() normally blocks, unless the socket has been placed in nonblocking I/O mode. In nonblocking mode it would fail with the error EAGAIN  or EWOULDBLOCK in .........【阅读全文】

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

发布时间:2014-10-28 20:52:36

1. time:系统调用功能:返回从 1970-01-01 00:00:00 到此刻秒数。#include <time.h>time_t time(time_t *t);2. gettimeofday:系统调用功能:返回从 1970-01-01 00:00:00 到此刻秒数和毫秒数(比 time 返回的时间更精准)。#include <sys/time.h>int gettimeofday(struct timeval *tv, struct timezone *tz);struc.........【阅读全文】

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

登录 注册