[muscle] Re: Win32 port of MUSCLE server and client

  • From: "Cui, Fanzhe" <fanzhe.cui@xxxxxxxxx>
  • To: "Jeremy Friesner" <jaf@xxxxxxxxxxxx>
  • Date: Mon, 11 Jul 2005 16:38:48 -0400

Hi, Jeremy,

Thank you for the descriptions, and I will try with it. 
Attached is your source code and VS C++ .NET 7.1 project file.


-----Original Message-----
From: Jeremy Friesner [mailto:jaf@xxxxxxxxxxxx] 
Sent: Monday, July 11, 2005 4:12 PM
To: Cui, Fanzhe
Cc: muscle@xxxxxxxxxxxxx
Subject: Re: [muscle] Re: Win32 port of MUSCLE server and client

On Monday 11 July 2005 12:58, Cui, Fanzhe wrote:
> That's great! If you like to include the MS VC++ project file, I can
> forward it to you.

Yes, please send it to me, then I can include it in the tests folder.

> Do you have any idea how I should test cliet to cliet communication in
> the local host through the server? If you have any pointer, it would
> very helpful.

The way I would do it is:

1) Compile and run muscled on my computer
2) Run two copies of the client program, and have them both connect to
server (i.e. to "localhost" or ""0
3) Have each client print out any Messages it receives from the server,
4) Have one client send a Message to the server.  (The server's default 
behavior for any Message that has a 'what' code other than any of the 
PR_COMMAND_* values is to simply forward a copy of that Message to all
other connected clients)
5) So, immediately after client A sent the Message to the server, you
see client B receive a copy of that Message and print it out.

You can also try it with three or more clients if you want... whenever
any of 
the clients sends a Message, all the others will print out the Message.
you want the server to only send the Message to some of the other
and not all of them, you can limit its distribution by adding a
string field to the Message to tell the server where to foward the
to... see the documentation for details.


Other related posts: