#!/bin/bash while : do neterror=$(/bin/netstat -a | grep -cw "CLOSE_WAIT") echo "get tcp netstate 'LISTEN' number cuccessful!" echo "nete...
分类:
系统相关 时间:
2015-05-29 06:12:24
阅读次数:
218
注意一:首先不能用close()方法关闭window,要用hide().但是窗口(window)默认带个个关闭图标‘X‘,这个默认是执行close()方法的,故设置window的closeAction: ‘hide‘ ?就可以了,注意的是这里的Action里的A要大写。...
1.close()函数:立即返回到进程intclose(intsockfd);//返回成功为0,出错为-1.close 一个套接字的默认行为是把套接字标记为已关闭,然后立即返回到调用进程,该套接字描述符不能再由调用进程使用,也就是说它不能再作为read或write的第一个参数,然而TCP将尝试发送已...
分类:
其他好文 时间:
2015-05-28 12:28:04
阅读次数:
296
1下载MinGW
下载地址: sourceforge.net/projects/mingw/files/
打开下载的安装程序,按如下方式安装
Install->Change->D:\MinGW->Continue->Continue
mingw32-base->mingw32-gcc=g++->Installation->Apply Changes->Apply->Close
2安装...
分类:
编程语言 时间:
2015-05-28 09:37:55
阅读次数:
339
先上题目:
Given a string containing just the characters '(', ')', '{', '}', '[' and ']',
determine if the input string is valid.
The brackets must close in the correct order, "()" and "()[]{}" a...
分类:
编程语言 时间:
2015-05-28 09:32:29
阅读次数:
206
原文链接:http://www.jb51.net/article/58816.htm本文实例总结了C#中WinForm程序退出方法技巧。分享给大家供大家参考。具体分析如下:在c#中退出WinForm程序包括有很多方法,如:this.Close(); Application.Exit();Applic...
学习完了字符驱动,是按照宋宝华的Linux设备驱动开发讲解学习的,代码练习敲了一遍,自己也理解了。
字符驱动主要的就是一些open,close,read,write等操作
通过上层调用到自己写的底层函数这里写代码片
#include
#include
#include
#include <linux/typ...
分类:
系统相关 时间:
2015-05-27 17:21:45
阅读次数:
203
新来个intern,跟着某同事做devops,看其对于shell有点疑惑,于是列举了个简单的应用给他,统计IP出现次数 。 TCP????192.168.0.97:1052??????60.28.216.15:80????????CLOSE_WAIT
TCP????1...
分类:
其他好文 时间:
2015-05-27 16:12:20
阅读次数:
484
StreamReader sr = new StreamReader(path, Encoding.Default); base64 = sr.ReadToEnd(); sr.Close();
分类:
其他好文 时间:
2015-05-27 12:08:36
阅读次数:
86
StreamWriter sw = new StreamWriter(path, false); sw.Write(base64); sw.Close();
分类:
其他好文 时间:
2015-05-27 12:00:07
阅读次数:
128