标签: android .net xamarin
在用InputStream关闭套接字时并且在引发soc.Close()异常之前如何停止从Java.IO.IOException: bt socket closed, read return: -1读取数据?
InputStream
soc.Close()
Java.IO.IOException: bt socket closed, read return: -1
while ((x = soc.InputStream.Read(buffer, 0, buffer.Length)) != -1) { ...