1izumrud Posted February 19, 2012 Author Share Posted February 19, 2012 greetings. how to make the client check the status of the server? online and offline Link to comment Share on other sites More sharing options...
Rithy58 Posted February 19, 2012 Share Posted February 19, 2012 I hadn't seen EO code for months so my memory of the code is fussy but you can check if the socket is connected by doing this:```If Socket.State = sckConnected ThenisOnline = TrueElseisOnline = FalseEnd If```Or if you mean check the server status via the website:http://www.freemmorpgmaker.com/status/index.phpSincerely,Rithy Link to comment Share on other sites More sharing options...
1izumrud Posted February 19, 2012 Author Share Posted February 19, 2012 No, I want to type in Label was written. Online or ofline Link to comment Share on other sites More sharing options...
Rithy58 Posted February 19, 2012 Share Posted February 19, 2012 Then you can still use my code above. Just edit it to make it work.So like, instead of having isOnline = True, change it to lblStatus.Caption = "Online"And make sure the name of the winsock is Socket. If it's not, change Socket.State to NameHere.State. I'm not sure what Robin named it.Sincerely,Rithy Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now