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 ...
  • 15:10
  • 浏览 (410)
  • 评论 (0)
hpq852
搜索本博客
最近加入圈子
最新评论
评论排行榜