A
Ajay
hi!
on my gui, i have a "start server" button and a "stop server" button.
the problem is "start server" will loop infinitely and respond to requests.
i'd like to be able to click on "stop server" and get the server to stop.
how would i go about doing it? i can think of a soln involving threads,
where i have "start server" in a separate thread and have it continously
poll a shared variable. but is there another solution not involving
threads.
thanks
cheers
on my gui, i have a "start server" button and a "stop server" button.
the problem is "start server" will loop infinitely and respond to requests.
i'd like to be able to click on "stop server" and get the server to stop.
how would i go about doing it? i can think of a soln involving threads,
where i have "start server" in a separate thread and have it continously
poll a shared variable. but is there another solution not involving
threads.
thanks
cheers