Multiple connection to multiple servers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jetean
    New Member
    • Feb 2008
    • 33

    Multiple connection to multiple servers

    Hi:
    How to make connections to multiple different Socket Servers Asyncronously?

    What I looking at is to have a program (C#) that log into different servers. I know to to code 1 client to 1 server. I would like to create a class that I can re use (well because with class I can create multiple object), Does anybody code it before?

    Thanks
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    Pass the server details as the arguments to the class when it is made.

    MySocketServer Fred = new MySocketServer( IPaddress, PortNumber);

    Comment

    Working...