1998Q4/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: OO Design Question -->
<!--X-From-R13: X Q Znjerapr <pynjNhaqre.rate.ftv.pbz> -->
<!--X-Date: Tue, 10 Nov 1998 16:57:38 &#45;0800 -->
<!--X-Message-Id: 199811110052.QAA21754#under,engr.sgi.com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 000001be0d09$97298520$a3a7fea9@mythrid -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: OO Design Question</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:claw#under,engr.sgi.com">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
      text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">

  <font size="+4" color="#804040">
    <strong><em>MUD-Dev<br>mailing list archive</em></strong>
  </font>
      
<br>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg00814.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00816.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00814.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00813.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00815">Author</A>
&nbsp;|&nbsp;<A HREF="#00815">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00815">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: OO Design Question</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Subject</em>: [MUD-Dev] Re: OO Design Question </LI>
<LI><em>From</em>: J C Lawrence &lt;<A HREF="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</A>&gt;</LI>
<LI><em>Date</em>: Tue, 10 Nov 1998 16:52:46 -0800</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
On Wed, 11 Nov 1998 11:24:05 +1100 
Brad Leach&lt;c9608122#alinga,newcastle.edu.au&gt; wrote:

&gt; My question is this: Should the "Server" object be started (via a
&gt; public "startup" function) and look after everything (Method "A")
&gt; or should the main() function look after the specific's of calling
&gt; AServer::Init(), AServer::MainLoop(), etc (Method "B").

What I do:

  main.c:  

    1) Is very very non-OO, and mostly does environmental checks
(gross error checking) for the upcoming server.

    2) Instantiates a "State" object which loads and configures the
server for the task it is about to do (also does some error handling
configs/instantiation, memory pool configs, singleton setups etc)

    3) Instantiates a "Server" object which takes the State object
as an argument (the State object is done first to simplify error
handling in constructors).

    4) The instantiated Server object gets the server all up and
ready to run.

    5) Call Server.Run().

    6) Handle exceptions arising from Server.Run() as applicable.

-- 
J C Lawrence                               Internet: claw#kanga,nu
(Contractor)                              Internet: coder#kanga,nu
---------(*)                     Internet: claw#under,engr.sgi.com
...Honourary Member of Clan McFud -- Teamer's Avenging Monolith...


</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00814" HREF="msg00814.html">[MUD-Dev] OO Design Question</A></STRONG>
<UL><LI><EM>From:</EM> "Brad Leach" &lt;c9608122#alinga,newcastle.edu.au&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00814.html">[MUD-Dev] OO Design Question</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00816.html">[MUD-Dev] Re: Spell components, chemistry, and the like...</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00814.html">[MUD-Dev] OO Design Question</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00813.html">[MUD-Dev] ADMIN:  Attributions</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00815"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00815"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><strong><A NAME="00832" HREF="msg00832.html">[MUD-Dev] MUD clients, testing</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Thu 12 Nov 1998, 17:00 GMT
<LI><strong><A NAME="00827" HREF="msg00827.html">[MUD-Dev] Re: Chemistry [Warning, scientific content]</A></strong>, 
Peck, Matthew x96724c1 <a href="mailto:x96724#exmail,usma.army.mil">x96724#exmail,usma.army.mil</a>, Thu 12 Nov 1998, 07:47 GMT
<LI><strong><A NAME="00820" HREF="msg00820.html">[MUD-Dev] AMIN: Unsubscriptions</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Wed 11 Nov 1998, 18:40 GMT
<LI><strong><A NAME="00814" HREF="msg00814.html">[MUD-Dev] OO Design Question</A></strong>, 
Brad Leach <a href="mailto:c9608122#alinga,newcastle.edu.au">c9608122#alinga,newcastle.edu.au</a>, Wed 11 Nov 1998, 00:26 GMT
<UL>
<LI><strong><A NAME="00815" HREF="msg00815.html">[MUD-Dev] Re: OO Design Question</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Wed 11 Nov 1998, 00:57 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00813" HREF="msg00813.html">[MUD-Dev] ADMIN:  Attributions</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Wed 11 Nov 1998, 00:21 GMT
<LI><strong><A NAME="00805" HREF="msg00805.html">[MUD-Dev] Re: Spell components, chemistry, and the like...</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Tue 10 Nov 1998, 07:12 GMT
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00806" HREF="msg00806.html">[MUD-Dev] Re: Spell components, chemistry, and the like...</A></strong>, 
JavaAl <a href="mailto:JavaAl#aol,com">JavaAl#aol,com</a>, Tue 10 Nov 1998, 07:16 GMT
</LI>
<LI><strong><A NAME="00807" HREF="msg00807.html">[MUD-Dev] Re: Spell components, chemistry, and the like...</A></strong>, 
quzah [sotfhome] <a href="mailto:quzah#softhome,net">quzah#softhome,net</a>, Tue 10 Nov 1998, 13:02 GMT
</LI>
</UL>
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>