Re: [Simpleweb-Support] How to get noticed when Simple Server goes down ...
Brought to you by:
niallg
From: Niall G. <nia...@an...> - 2004-05-10 09:28:15
|
Hi, > is it running ServerSocket(80).close() would stop this server cleanly? Not exactly, you need a handle on the ServerSocket given to the Connection.connect method. So if you did this ServerSocket sock = new ServerSocket(80); Connection.connect(sock); // whatever .... sock.close() // terminates the connection ... > Supposed ServerSocket(80) crashes because of any problem, how to get a > noticed when this event occur? You would need to write a simple.http.connect.SocketHandler to use with a Connection object. You can introduce your own functionality to handle failures. Niall |