码迷,mamicode.com
首页 >  
搜索关键字:close    ( 9262个结果
c# Wndproc的使用方法
protected override void WndProc(ref Message m) { const int WM_SYSCOMMAND = 0x0112; const int SC_CLOSE = 0xF060; if (m.Msg == WM_SYSCOMMAND...
分类:其他好文   时间:2014-08-13 12:49:36    阅读次数:184
C/C++ Windows移植到Linux
近期写了有关Socket的程序,需要从windows移植到linux。现把有用的东东收集整理记录下来。1.头文件windows下winsock.h或winsock2.h;linux下netinet/in.h(大部分都在这儿),unistd.h(close函数在这儿),sys/socket.h(在.....
分类:编程语言   时间:2014-08-13 12:42:36    阅读次数:288
HTTP 学习笔记03
通用信息头Cache-Control : no-cache(不缓存当前请求) [*]Connection:close(返回当前请求后立即断开)[*]Date:。。。(HTTP消息产生的时间)Pragma:no-cache (不缓存) [*]Trailer:Date(哪些能放到实体内容后的头字段)T....
分类:其他好文   时间:2014-08-13 01:06:14    阅读次数:169
8月12号=》391页-395页
14.10 使用document对象 document对象既是HTMLDocument类的一个实例,也是DHTML模型中的一个对象。该对象除了可以使用标准DOM模型 的方法之外,还可以使用它如下几个常用方法。 close():结束一个通过open方法打开的document对象...
分类:其他好文   时间:2014-08-13 00:31:34    阅读次数:234
Lua 遍历Linux目录下的文件夹
代码如下,里面有注释,应该能看懂。function getFile(file_name) local f = assert(io.open(file_name, 'r')) local string = f:read("*all") f:close() return str...
分类:系统相关   时间:2014-08-12 18:51:24    阅读次数:981
Python文件读写
文件处理f= file('poem.txt', 'w')# open for 'w'riting模式可以为读模式('r')、写模式('w')或追加模式('a')f.write(poem) # write text to filef.close()f = file('poem.txt')# if no...
分类:编程语言   时间:2014-08-12 16:37:34    阅读次数:203
Hadoop集群内存过高,HDFS存储慢
2014-08-12HDFS存储过慢,内存过高而且不释放网络方面:使用 netstat-n |awk'/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}' 查看网络情况:情况如下: CLOSE_WAIT 102 FIN_WAIT2 2 ESTABLIS...
分类:其他好文   时间:2014-08-12 13:07:14    阅读次数:601
pycharm每日技巧-3
Did you know that you can close tabs in the editor and the tool windows of PyCharm without actually using the context menu commands? It is enough to p...
分类:其他好文   时间:2014-08-11 11:23:52    阅读次数:211
C++中为啥ifstream不用new,用完还不用delete
刚从C#开始转C++,有很多东西不理解,如下边这段代码:   #include   #include      int main() {      using namespace std;      ifstream file;      basic_ifstream wfile;      char c;      // Open and close with a bas...
分类:编程语言   时间:2014-08-11 10:09:32    阅读次数:219
node.js fs所有函数的定义和功能
表4-1 fs 模块函数表 功能异步方法同步方法打开文件fs.open(path,flags, [mode], [callback(err, fd)])fs.openSync(path, flags, [mode])关闭文件fs.close(fd, [callback(err)])fs.clos.....
分类:Web程序   时间:2014-08-10 18:03:50    阅读次数:367
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!