阅读背景:

java套接字服务器和嵌入式设备 - 无法正确处理断开连接

来源:互联网 

I'm writing a server that is supposed to communicate with some embedded devices. The communication protocol is based on a fixed length header. The problem is I can't get my server to handle sudden disconnects of the devices properly (by "sudden" I mean situations when I just turn the device off). Here is the code for the client thread main loop:I'm writing a server that is supposed to commun




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: