re: 微信協議簡單調研筆記[未登錄] scott 2015-03-11 08:43
>> 2.3 結論是什么呢?
>> 若使用原始TCP進行雙向通信,則需要滿足以下條件,可以被類似于Wireshark協議攔截器誤認為是HTTP長連接:
>>使用80/8080端口(81/3128/8000經測試無效) 也許8080一般被作為WEB代理服務端口,微信才會享用這個紅利吧。
>> 輸出的內容中,一定要包含換行字符"\n"
>> 因此,可以定性為微信使用了基于8080端口TCP長連接,一旦數據包中含有換行"\n"符號,就會被Wireshark誤認為HTTP協議。可能微信是無心為之吧。
你這誤人子弟了吧。
re: 微信協議簡單調研筆記[未登錄] scott 2015-03-11 08:41
弄清楚什么是HTTP協議和長連接再說吧。
re: java 事件機制[未登錄] scott 2014-11-13 15:03
樓主總體來說是不錯的,我就想問問你有沒有想過為什么要“DemoEvent extends EventObject”,不這樣寫行不?是運行不了還是性能損失了?或者處于別的什么考慮寫了這個?
你為什么又要這樣寫“DemoListener extends EventListener”,這個也是必須的嗎?
我只能說你在不求甚解的時候,已經開始誤人子弟了(有很多人讀了你的這篇博文,而且留言了)。網上有很多類似的帖子,代碼幾乎都是一樣的。不知道是樓樓拷了別人的代碼,還是別人拷了樓樓的代碼,希望樓樓加油,寫出更好的帖子。
學校專案需要用,謝謝樓主。
jaisliu@yahoo.com.tw
--3. 使用新的ReentrantLock,最佳的實踐就是結合try/finally塊來進行。在try塊之前使用lock方法,而 在finally中使用unlock方法。
有一個問題,如果在lock方法之后在try之前出現一些異常,會不會導致lock沒有unlock而出現問題。
出現錯誤:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; CIBA)
Timestamp: Mon, 14 Sep 2009 00:52:09 UTC
Message: Expected ';'
Line: 234
Char: 17
Code: 0
URI: file:///D:/BackUp/Desktop/util.js
AppClassLoader首先會到classpath下去尋找Student.class文件,應該是AppClassLoader會調用父loader去加載,沒加載到的話才會由AppClassLoader去加載, JDK doc 引用如下:
The ClassLoader class uses a delegation model to search for classes and resources. Each instance of ClassLoader has an associated parent class loader. When called upon to find a class or resource, a ClassLoader instance will delegate the search for the class or resource to its parent class loader before attempting to find the class or resource itself. The virtual machine's built-in class loader, called the bootstrap class loader, does not itself have a parent but may serve as the parent of a ClassLoader instance
re: exe4j視頻教程[未登錄] scott 2008-10-30 21:16
發我一份吧!謝謝!duzhengxing625@163.com
請問一下,我想實現點擊ET中某一行具體數據查看明細后,再返回,
怎樣保持原來查詢的記錄集及頁碼相同.
是設置state嗎?
我設置了試了一下.但不起作用..
正在學習,給我一份吧,先謝謝了. fangweifzfj@163.com
少個條件,一天能看幾條狗,如果一天能全看完的話,第一天就槍響了
發一份給我吧,謝謝
liuzgonly@hotmail.com