Re: Multiple Client Simulation? URgent Help needed



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
.



Relevant Pages

  • Re: Multiple Client Simulation? URgent Help needed
    ... Now the remote machine sends back the message to ... windows form.Now this class then communicates to the client to output ... Now when it comes to multiple clients what i do is copy the code of the ... And then this is i have a windows form is which is the client and i ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Cant reach remote DLL from client via DCOM
    ... ClsID via the local registry before talking to the remote machine. ... machine for the relevant ProgID, ... your EXE registered on the client machine simply to translate the ProgID. ...
    (microsoft.public.vb.com)
  • Re: Remote access using Dialup Networking
    ... >>> machine, send a command over to the remote machine, remote machine ... >>> I know how to query the database and get information out, ... >>> sends back to the client the dataset. ... >> Florida Department Of Transportation ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: I cant get graphics from remote machine
    ... I connect using Putty with X11 fwding enabled to a remote machine. ... i tried to set it to the ip of the client but client is also behind a ... Whatever you mean with "graphics are disables"? ...
    (alt.os.linux)
  • Re: Multiple Client Simulation? URgent Help needed
    ... windows form.Now this class then communicates to the client to output ... Now when it comes to multiple clients what i do is copy the code of the ... By "listener", are you talking about a host for your remote object (a ... And then this is i have a windows form is which is the client and i ...
    (microsoft.public.dotnet.framework.remoting)

Loading