Jump to content

How to stop an UniGUI Server pragramatically outside the server itself?


Recommended Posts

Posted

One alternative: put a standard timer in the ServerModule to check periodically something, i.e.:

  • a global variable, that you can set through an admin form you might have to adminsitrate your application
  • monitorize the presence of a flag file
  • etc.
You also can use a special URL and analyze it (if you do so, use some kind of encription to ensure that the call to stop UniGUI server is really yours).

 

When you decide to stop the server monitoring variable/file/protocol/etc., simply execute Application.Terminate...

 

Hope it helps...

 

Regards,

Posted

thank you!

Both of your advices are helpful,as my appliction is a standalone server,so putting a standard timer on the servermodule then checking some stoping flag is good choice.

thank again!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...