[muscle] Re: Server design

  • From: Marius Kjeldahl <marius@xxxxxxxxxxxx>
  • To: muscle@xxxxxxxxxxxxx
  • Date: Tue, 4 Nov 2003 15:59:38 +0100

Thanks for the excellent links to more information about MUSCLE. Another=20

Has anybody made a utility to dump/output the entire tree in a server? I've=
fooled around with the programs in the "tests" directory, but have not foun=
any easy way/program to dump the entire state tree.

If not, I guess it would be a good "tutorial assignment" for me.


Marius Kjeldahl

On Tuesday 04 November 2003 01:16, Jeremy Friesner wrote:
> Hi Marius,
> >I stumbled on MUSCLE while researching toolkits for client/server
> > application =0D toolkits, and based on the information I have read so f=
> > it looks like a very solid design.
> Thanks :^)
> >1) Server design. Should I plan on extending the muscled daemon, adding =
> > own =0D authentication layer and session logic, or would it be just as =
> > just to have a "server" as a separate process to another muscled proces=
> > where my "server" (typically running centrally under my control) would
> > take care of controlling which messages gets distributed to what clients
> > through the muscled daemon?
> Typically the server is a process that you manually start on the=20
> server computer, similar to how muscle's built-in muscled executable
> works.=0D=20
> The best way to do it is to make your own subclass of the
> StorageReflectSession =0D class (or AbstractReflectSession if you don't
> want/need the database or live query features) and add in any necessary
> custom logic there.  You may also find it useful to make a "persistent
> state session" that contains state information that isn't specific to any
> particular client.  This session would not be associated with any
> particular client, but would hang around permanently and interact with the
> clients' sessions.
> If you haven't seen it already, be sure to read this article:
>    http://www.lcscanada.com/muscle/muscle/html/Custom%20Servers.html
> >2) Has anybody added SSL transport support?
> Not that I'm aware of.  But if you end up making an SSLDataIO wrapper
> class, I'd be happy to add it to the distribution!
> >3) Anywhere I can look for more documentation or application examples?
> Check out this article I wrote about multiplayer games
> with MUSCLE, it includes an example multiplayer game
> (only Windows binary and source links are working though,
> the other files seem to have disappeared from the server :^( )
> http://www.osnews.com/story.php?news_id=3D1523
> Also, feel free to ask more questions here!  :^)
> Jeremy

Other related posts: