[Home] [Groups] - Message: [Prev in Group] [Next in Group]

nu.kanga.list.mud-dev

23811: RE: [MUD-Dev] Question about copyovers.

[Full Header] [Plain Text]
From: "Jon Lambert" <tychomud@ix.netcom.com>
Newsgroups: nu.kanga.list.mud-dev
Date: Wed, 15 May 2002 09:59:21 -0400
References: [1]
Organization: Kanga.Nu
Anderson, David wrote:

> Someone mentioned some good points about copying in new code into
> a already running Java mud.
 
>   What if I wanted to replicate C mud's copyover code?  I was
>   trying to think of a good way to do it the other day.
 
> Basically, you need to keep your vector of Sockets (the users who
> are still connected, I have a big vector of sockets basically) and
> completely startup a new copy of your mud, and somehow copy those
> sockets over to your new running mud.  Anyone know how to do this?

I don't think you can as the sockets implementation is OS dependent,
changeable and hidden.  Java would also finalize all open Sockets
and the implentation would close them.

On the other hand there's no reason why you couldn't write your own
sockets implementation and a JNI interface to it.

--
--* Jon A. Lambert - TychoMUD        Email:jlsysinc@ix.netcom.com *--
--* Mud Server Developer's Page <http://tychomud.home.netcom.com> *--
--* If I had known it was harmless, I would have killed it myself.*--
 

_______________________________________________
MUD-Dev mailing list
MUD-Dev@kanga.nu
https://www.kanga.nu/lists/listinfo/mud-dev