Windows Phone 7.1 Mango and NetworkStream. Is it included? any good alternatives?
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.
精彩评论