System.IO.Stream ReadTimeOut() 问题求救
我用VS2005开发PC windows程序时,(System.IO.Stream) ms 具有 ReadTimeOut函数,所以运行结果正确;但是我用VS2005开发winCE SmartPhone程序时,(System.IO.Stream) ms 不具有ReadTimeOut函数,所以运行结果不正确。
程序如下:
System.IO.Stream ms = tcp.GetStream();
byte[] buf=.......;
ms.ReadTimeout = 200;//关键是这一句
ms.Write(buf, 0, buf.Length);
ms.Flush();
请高人指点一二,不胜感激!