[muscle] Re: CompleteSetupSystem questions.

  • From: Vitaliy Mikitchenko <vitviper@xxxxxxxxxxxxxx>
  • To: muscle@xxxxxxxxxxxxx
  • Date: Tue, 26 Aug 2003 00:32:09 -0700

At 09:33 AM 8/26/2003 +0200, you wrote:
>What does CompleteSetupSystem do?

On Windows, sets up networking etc... It does some other little things... 
but that's the big thing for Win32.. you HAVE to init Winsock for sockets 
to work.

>Say that you want an application that is both a server and a client running
>in separate threads. Where should you put your CompleteSetupSystem? Is it
>common for both the client and the server, that is, should there be just one
>CompleteSetupSystem object in an application (or could we have as many as we

Yes, client and server both need it. Put it right at the start of your main().

>If there should be just one single instance of CompleteSetupSystem, why
>isn't it a Singleton?
>David Svanberg
>Software Engineer  Poseidon Simulation AS
>Naeringsparken, P.O.Box 89, N-8376 Leknes, Norway
>Tel:+47 760 54 330  Fax:+47 760 82 006
>E-mail:ds@xxxxxxxxxxx  www.poseidon.no
>POSEIDON - your maritime training partner

Other related posts: