[gameprogrammer] Re: detecting termination signal in win32 and linux

On 3/31/06, Roger D Vargas <luo_hei@xxxxxxxx> wrote:
> I need to detect when the program receives a termination signal to save
> player data and send a bye packet. But I need some portable way to do
> it, is this possible or I need to implement specific code for each OS?

I am not sure what you mean by a termination signal. Are you talking
about a client / server message indicating end of transmission, or are
you asking what happens if the session is disconnected before such a
message can be sent?

Chris

--
E-Mail: Chris Nystrom <cnystrom@xxxxxxxxx>
http://www.newio.org/
AIM: nystromchris


---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: