钮玉晓
钮玉晓

Reputation: 133

How do I reconnect a socket using Mina

Now I have a java application using Mina,when socket is connecting to server,I think this java application is normal,else abnormal. In brief,I implement application status monitor using socket long connection.The problem is how do I reconnect a socket using Mina,or is there another better way to implement application status monitor. Thanks.

Upvotes: 1

Views: 990

Answers (1)

user207421
user207421

Reputation: 310957

You can't reconnect any TCP socket. You have to close it and start again with a new one, same way you got the first one.

Upvotes: 2

Related Questions