muniprasad Posted September 25, 2013 Share Posted September 25, 2013 my server has developer license. My client has express license. If i make client-server with these two machines. a) Is client always run or will stop after some duration. my server has developer license. My client has run-time license. If i make client-server with these two machines. After 3 or 4 days client stops working. So we need to restart server and client. b )what will be the reason client stops working. c) So i just made a sequence with auto start while(1) if (systime() > gettime(channnel1[0]) + 60) System.Connection.REset("Remote") endif delay(60) endwhile() Is the above will enough to reset connection with server and get back to normal. Or i need to also specify System.reboot() Thanks Link to comment Share on other sites More sharing options...
AzeoTech Posted September 25, 2013 Share Posted September 25, 2013 1) Express does not support any networking, whether client or server 2) connections can get dropped by networking errors. The sequence you wrote is about right. The problem with it is if the clocks on the client and server are different or they drift apart. It is usually better to do: private lastTime = getTime(remote.channel1[0]) while(1) delay(60) if (getTime(remote.channel1[0]) == lastTime) system.connection.reset("Remote") endif lasttime = getTime(remote.channel1[0]) endwhile In this way, you are not dependent on the client clock. You are instead looking to see if you have new values based solely on the server clock. Link to comment Share on other sites More sharing options...
muniprasad Posted September 26, 2013 Author Share Posted September 26, 2013 Thanks, Is there any log you are maintaining for network failures that means client stops updating something like that. Is windows update failure will cause the client to disconnect from server. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.