[GNE]onFailure()
Brought to you by:
gillius
From: Elias P. <el...@us...> - 2002-08-08 19:20:48
|
Hi, just wanted to say, I managed to compile GNE with gcc-3 shortly after you left yesterday. Apparently my gcc-2.95 is not UNIX-98 compliant, whatever that means - and so it doesn't have that one pthread function. Something else, I started with my example now, and have a short question about onFailure(). I was trying to understand the exping example: If I open a server and a client, i can shut down the client, and then reconnect, no problem. But if I kill the client (with the kill command), the server receives an onFailure(), then also shuts down. What I want is, the server should receive the onFailure() if it likes to do so, but continue listening and not shut down - for obvious reasons. I couldn't figure out how to do it, mainly because I don't see where in the code the server shuts down. What exactly happens after it receives the onFailure()? There's no exit() or anything, and knowing only C, I'm lost :) (It's not really a big problem for now. My example program works, but I have to make the clients disconnect before shutting down, else the server shuts down itself when the first client is shut down.) -- Elias Pschernig |