[From QnA]Multiple Clients & W7100

Hi,

I am developing a program for a control system using Arduino and Internet Shield with W7100 chip. My programm is written in c# and using the common libery (TcpClient) as communication interface. The program is work fine but if I try to connect the controller with multiple client simutantly (all client connect to the same server - same IP and same port-), only the first client can connect to server. As i see in the detial of W7100, it should be connected up to 8 sockets (= 8 clients?).

My Question :

  • Is it possible for multiple clients to connect to the server at the same time?
  • Do I have to set the socket number to make this situation possible? - if yes, how can I set it in c#?

Thanks,
zensuie

Dear customer,
Thanks for your interest in W7100.

  1. Yes, it is possible. 8 sockets = 8 clients, at least.
  2. If you want to let 8 clients connect with W7100 simutantly,you must open 8 sockets before. Below code comes from our application note of W7100-based webserver. You can see how to listen the 8 sockets simutantly. As for c# and arduino, we are not experts, please find support from arduino website or other forum.

while (1)
{
ProcessWebSever(0);
ProcessWebSever(1);
ProcessWebSever(2);
ProcessWebSever(3);
ProcessWebSever(4);
ProcessWebSever(5);
ProcessWebSever(6);
ProcessWebSever(7);
}
Thanks.
WIZnet