In Java RMI, how can a client know that its server is dead?

蹲街弑〆低调 提交于 2019-11-29 15:44:35

So nobody seems to be answering this ... How would you know if something is dead without interacting with it?

In IRC the server will periodically ping clients to check that they're still connected ...You will see Ping! Pong! in the client window and sometimes a client will attempt to send a message only to find that it has no connection.

If you are worried about overhead .. just don't do it so often

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!