Re: Multiple Client Simulation? URgent Help needed
- From: James Crosswell <james@xxxxxxxxxxxxxx>
- Date: Fri, 15 Dec 2006 09:44:41 +0100
Chacko wrote:
Hey Peter ,
Well here goes.
The Client is a windows form which initiates the remote call to a
remote machine. Now the remote machine sends back the message to
another class[listener] which is in the same solution as that of the
windows form.Now this class then communicates to the client to output
the result.[Single Client Scenario]
Now when it comes to multiple clients what i do is copy the code of the
client[form] and make another form and paste the same code and make
some changes... Also i create another listener class by copying the
same code..
Erm... why are you copying code? The "make some changes" thing you mentioned could probably be factored out as parameters to a method call or a constructor for the ClientForm... you would then have one class (ClientForm) and multiple "instances" of the class (i.e. multiple clients in your case). Ditto for the ClientListener - factor anything that changes for each of the instances out into parameters for a constructor or some other static method that creates instances of this.
I was wondering if any of u know how u simulate multiple clients by
using reflections.
I don't think reflection is necessary here.
Best Regards,
James Crosswell
Microforge.net LLC
http://www.microforge.net
.
- References:
- Multiple Client Simulation? URgent Help needed
- From: Chacko
- Re: Multiple Client Simulation? URgent Help needed
- From: Peter Bradley
- Re: Multiple Client Simulation? URgent Help needed
- From: Chacko
- Multiple Client Simulation? URgent Help needed
- Prev by Date: Re: Multiple Client Simulation? URgent Help needed
- Next by Date: Re:
- Previous by thread: Re: Multiple Client Simulation? URgent Help needed
- Next by thread: Is Remoting The Right Tool For My Job?
- Index(es):
Relevant Pages
|
Loading