码迷,mamicode.com
首页 >  
搜索关键字:fd    ( 1602个结果
shell md5sum
md5sum out.a echo "fd_limit=$(ulimit -n), fd_used=$(ll /proc/4741/fd | wc -l)" 需找句柄,及fd使用情况
分类:系统相关   时间:2016-01-29 15:39:43    阅读次数:192
select()函数以及FD_ZERO、FD_SET、FD_CLR、FD_ISSET
http://hi.baidu.com/%B1%D5%C4%BF%B3%C9%B7%F0/blog/item/e7284ef16bcec3c70a46e05e.htmlselect函数用于在非阻塞中,当一个套接字或一组套接字有信号时通知你,系统提供select函数来实现多路复用输入/输出模型,原型:...
分类:其他好文   时间:2016-01-23 00:47:20    阅读次数:323
解决error C2011: 'fd_set' : 'struct' type redefinition的方法
http://www.cnblogs.com/ark-zhang/archive/2013/06/19/3144383.html首先说明这个问题由于重复定义引起的编译错误。先说明解决方法,然后再说是什么原因导致了这个问题。解决方法:下列任何一种方法都可以。1. 在所有包含windows.h的代码之前...
分类:其他好文   时间:2016-01-22 14:28:34    阅读次数:136
移动端前端UI库—Frozen UI、WeUI、SUI Mobile
Frozen UI自述:简单易用,轻量快捷,为移动端服务的前端框架。主页:http://frozenui.github.io/开发团队:QQVIP FD TeamGithub:https://github.com/frozenui/frozenuiDemo:http://frozenui.githu...
分类:移动开发   时间:2016-01-20 12:37:03    阅读次数:379
html5+java大文件上传代码
<body> <inputid="fileid"type="file"accept="video/*;capture=camera" onchange="onfile(this)"> <inputid="btn"type="button"value="提交"> <scripttype="text/javascript"> varxhr; functiononfile(file){ varfd=newFormData(); fd.ap..
分类:编程语言   时间:2016-01-15 06:29:41    阅读次数:378
重复使用bufferevent的一些体会
看了一些网上使用bufferevent的例子,一般都是一个连接对应一个bufferevent,连接accept的时候,给bufferevent设置上fd和对应的回调,在连接断开或者发生错误的时候,将bufferevent释放掉。昨天在使用bufferevent的时候,突发奇想,准备了一个conn.....
分类:其他好文   时间:2016-01-12 13:14:21    阅读次数:1036
I/O多路复用之epoll
1、select、poll的些许缺点先回忆下select和poll的接口intselect(intnfds,fd_set*readfds,fd_set*writefds,fd_set*exceptfds,structtimeval*timeout);int poll(struct pollfd *f...
分类:其他好文   时间:2016-01-10 22:28:52    阅读次数:370
关于python 文件操作os.fdopen(), os.close(), tempfile.mkstemp()
嗯。最近在弄的东西也跟这个有关系,由于c基础渣渣。现在基本上都忘记得差不多的情况下,是需要花点功夫才能弄明白。每个语言都有相关的文件操作。今天在flask 的例子里看到这样一句话。拉开了文件操作折腾的序幕 db_fd, flaskr.app.config['DATABASE'] = tempf...
分类:编程语言   时间:2016-01-10 01:39:24    阅读次数:186
iOS socket TCP UDP
TCP:服务器:#import #include #include #include int main(int argc, const char * argv[]){ @autoreleasepool {// 1 int err; int fd=soc...
分类:移动开发   时间:2016-01-09 22:48:50    阅读次数:267
I/O多路复用之poll
1、select的些许缺点回忆一下 select接口intselect(intnfds,fd_set*readfds,fd_set*writefds,fd_set*exceptfds,structtimeval*timeout);select需要我们指定文件描述符的最大值,然后取[0,nfds)这个...
分类:其他好文   时间:2016-01-09 20:13:59    阅读次数:168
1602条   上一页 1 ... 81 82 83 84 85 ... 161 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!