管道读写规则:当没有数据可读时O_NONBLOCK disable:read调用阻塞,即进程暂停执行,一直等到有数据来到为止。O_NONBLOCK enable:read调用返回-1,errno值为EAGAIN。当管道满的时候O_NONBLOCK disable: write调用阻塞,直到有进程读走...
分类:
其他好文 时间:
2015-04-05 01:07:34
阅读次数:
194
http://blog.csdn.net/petershina/article/details/7946615一旦,我们建立好了tcp连接之后,我们就可以把得到的fd当作文件描述符来使用。由此网络程序里最基本的函数就是read和write(int fd, const void*buf,size_t ...
分类:
其他好文 时间:
2015-04-04 23:46:17
阅读次数:
178
php transfer closed with outstanding read data remainingphp curl CURLOPT_HTTPHEADERphp curl 报错 transfer closed with outstanding read data remaininghtt...
分类:
Web程序 时间:
2015-04-04 22:23:15
阅读次数:
671
Treasure ExplorationTime Limit: 6000MSMemory Limit: 65536KTotal Submissions: 7035Accepted: 2860DescriptionHave you ever read any book about treasure e...
分类:
其他好文 时间:
2015-04-04 21:02:48
阅读次数:
197
数据流(Stream)是指数据通信的通道。Java程序中对数据的输入、输出操作是以流的方式进行的,JDK又提供了各种流类,来获取不同种类的的数据。流的分类:按流向分·输入流:从文件、网络、内存等(数据源)到程序中,是read的过程,是input的过程,处理这样事物的流,是输入流..
分类:
编程语言 时间:
2015-04-04 19:51:48
阅读次数:
161
现象:安装后,window C盘mount失败错误内容如下:Error mounting: mount exited with exit code 13: ntfs_attr_pread_i: ntfs_pread failed: Input/output errorFailed to read N...
分类:
其他好文 时间:
2015-04-04 16:44:22
阅读次数:
229
1 # coding: utf-8 # 使用Windows系统,首行'#!/usr/bin/env Pyton'无用,全部改为'# coding: utf-8' 2 3 'readtextfile.py -- read and display text file' 4 5 # get file...
分类:
编程语言 时间:
2015-04-04 11:52:42
阅读次数:
193
const QByteArray searchqstring= "*********";
QFile file("/opt/***");
file.open(QFile::ReadOnly);
while(1)
{
QByteArray array = file.read(1024);
file.seek(file.pos()-6);...
分类:
系统相关 时间:
2015-04-04 10:47:33
阅读次数:
349
socket编程原理1、问题的引入1) 普通的I/O操作过程:UNIX系统的I/O命令集,是从Maltics和早期系统中的命令演变出来的,其模式为打开一读/写一关闭(open-write-read-close)。在一个用户进程进行I/O操作时,它首先调用“打开”获得对指定文件或设备的使用权,并返回称...
分类:
其他好文 时间:
2015-04-04 10:39:27
阅读次数:
203