Sign in to follow this  
muniprasad

Runtime Mode

Recommended Posts

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

 

 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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
Sign in to follow this