我需要與給我異步答案的服務器(流式連接)交流。.Net CompactFramework 3.5中的System.Net.WebClient類?
我發現這一點:
http://msdn.microsoft.com/en-en/library/ms144211%28v=VS.80%29.aspx
生成此事件:
http://msdn.microsoft.com/en-en/library/system.net.webclient.openreadcompleted%28v=VS.80%29.aspx
我覺得這是我需要的,但我沒有WebClient類在我CompactFramework 3.5的System.Net。
我該怎麼辦?
謝謝。
編輯:我已經做了更加明確的問題: httpRequest, httpResponse, send GET through Stream and Receive the Result in C#
我需要發送消息,並等待返回消息。這條消息可能會在我發送之後到達很多時間,所以我需要OpenReadASync函數,當我有一個答案時有一個事件,並且不必創建一個線程以便檢查答案。 – Leen15 2011-01-07 10:37:47