On Sep 7, 2006, at 4:22 PM, Matthias Buercher wrote:

i am about to program a kind of http server that should run from a command line. as i understand, i can have it in a loop and it can respond listen to TCP sockets (i didn't try it yet, the program is still a GUI program). but i was asking me how can i tell the running program to quit gracefully? i thought about implementing a special command from over TCP also, but i do think this is not very secure. i only want to allow to quit from the same computer.
solution should run cross-platform.

No problem. Set up a socket to listen on a second port designated for administration. Only accept connections from localhost. I implemented just such a scheme and it works quite well.

Charles Yeomans

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to