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.
|