Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用keepalive属性设置为的客户端 TCP 连接器true。建立连接后它工作正常。服务器宕机时出现问题,我在发送数据之前不知道连接状态。
keepalive
true
有什么方法可以在通过引发异常或事件发送数据之前找到服务器/连接?