文章列表
Disconnet Detection
Since TCP/IP sends no packets except when there is traffic, without Socket.setKeepAlive( true ), it has no way of noticing a disconnect until you start trying to send (or to a certain extent receive) traffic again. Java has the Socket.setKeepAlive( true ) method to ask TCP/IP to h ...
- 2007-05-16 15:10
- 浏览 1655
- 评论(0)