Jump to content

Connection Timer On Linux


Kronicdreamer

Recommended Posts

hmm... from memory, vincula used noop command (basically its suppose to stand for no operation), but a server didn't have that, so it would come back with a "noop command invalid".

 

you could replicate this idea?

 

to do this, have a timer which sent "noop" to the server. when sending noop, set another timer which would be similar to a reconnect or something. and if the noop isn't responded to within say 15 seconds, you can predict you are disconnected from the server, and allow the 2nd timer to continue. if it did receive something back, then you would cancel the second timer.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...