且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

确定插座连接状态 - 机器人

更新时间:2023-02-22 20:10:42

您使用服务来处理这个Socket连接到你的服务器(它可能是一个好主意)。如果/当你是,你可以创建一个平的方法,在服务线程。

Are you using a Service to handle this Socket connection to your server (it would probably be a good idea). If/when you are, you can create the "ping" method as a thread in your service.