what is the best way to make 10+ simultaneous connections and send commands

0 votes
asked Mar 14, 2016 by bilen (170 points)

I need to connect to 10+ servers and send the same messages simultaneously to each server. I am using scripting object and send command method. Which way do you suggest?

1 Answer

0 votes
answered Mar 15, 2016 by Pavel Matyska (9,720 points)
selected Mar 16, 2016 by bilen
 
Best answer

Hi,

Since you want to connect to many servers, you need as many connections. If the simultaneous part of the request is necessary, I would suggest you to use multiple threads. One thread for one connection and in each thread use its own Scripting object.

...