Hi,

I have got the netChannel figured (thanks Bernie) out and the server is 
accepting multiple 
clients.  The problem is if a client flightgear program is shut down the 
server still tries to send it information and the server crashes.  I tried 
using netChannel::isConnected() but it returns true even if there is no 
client.

On the client side I thought about using netChannel::close to inform the 
server that the socket is closed but the function is never 
called.  netChannel::close is called in the clients destructor but the 
destructor is never called because FGGlobals *globals is never deleted 
(from what I can tell) which in turn would delete my client. 

Any thoughts on the matter?  Would putting "delete globals" somewhere in 
the code which down the line would call netChannel::close() be the solution?

Seamus


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to