05 2013 档案

摘要:获取ip信息api:淘宝:http://ip.taobao.com/service/getIpInfo.php?ip=8.8.8.8获取数据json数组格式,需要自己转换一下新浪:http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=json&ip=8.8.8.8网易有道:http://www.youdao.com/smartresult-xml/search.s?type=ip&q=8.8.8.8查询手机号码归属地api:http://www.youdao.com/smartresult-xml/search.s? 阅读全文
posted @ 2013-05-17 20:31 shineme 阅读(1732) 评论(1) 推荐(0)
摘要:static Mutex myMutex = new Mutex(); static public bool writeLine(string instr,string fileName){ myMutex.WaitOne(); .......[做文件读写就行了] myMutex.ReleaseMutex();} private System.Object lockThis = new System.Object(); lock (lockThis) { // Access thread-sensitive resources. ... 阅读全文
posted @ 2013-05-08 15:32 shineme 阅读(267) 评论(0) 推荐(0)