开发者

Windows Phone 7.1 Mango and NetworkStream. Is it included? any good alternatives?

开发者 https://www.devze.com 2023-03-11 18:56 出处:网络
Is the NetworkStream class, not included in the Mango SDK? It doesn\'t seem to be in the System.Net assembly but maybe it is somewhere else.

Is the NetworkStream class, not included in the Mango SDK? It doesn't seem to be in the System.Net assembly but maybe it is somewhere else. If it is not available (I wonder why) what would be a good alternative? Would the best way to go to just implemen开发者_StackOverflow中文版t it myself?


It doesn't appear to be in the System.Net.Sockets namespace, so I guess you're out of luck. If I were to hazard a guess, I'd say it wasn't included because Stream exposes blocking read/write methods and they preferred to exclude NetworkStream entirely rather than have them throw a NotSupportedException.

Having a stream also implies that you can use StreamReader, which wouldn't be true due to the lack of blocking read/writes.

0

精彩评论

暂无评论...
验证码 换一张
取 消