View Single Post
Old 08-15-2005, 01:44 PM   #4
Kylotan
Member
 
Join Date: Jun 2003
Location: Nottingham, UK
Home MUD: Abattoir (Smaug)
Home MUD: ex-Jellybean (Smaug)
Home MUD: ex-Dark Chambers (Merc)
Posts: 174
Kylotan is on a distinguished road
Send a message via ICQ to Kylotan Send a message via AIM to Kylotan Send a message via MSN to Kylotan Send a message via Yahoo to Kylotan
No, you can't hand memory over from one process to another. The same address in 2 applications will refer to a completely different area of memory (at least on any reasonably viable mud platform).

Possibly the simplest way to do what you're trying to do is to have your server in 2 parts, so that there's a thin bridge application between their client and your server. When your server goes down for a reboot, they stay connected to the bridge program.

Really though, if you want to know how copyover is generally done, download a snippet with it in and look for yourself. I believe that it often uses the fork() procedure which allows a process to effectively relaunch itself and carry over the descriptors (ie. files and network connections). Personally I think that's an ugly way of doing it but someone else might consider it elegant.
Kylotan is offline   Reply With Quote