Sign in to follow this  
Followers 0
JackyChan

Multiple connection?

4 posts in this topic

Hi,

ex: i have some servers

a.com:123

b.com:123

c.com:123

I want it like

$socket1 = TCPConnect("a.com", 123)

$socket2 = TCPConnect("a.com", 123)

$socket3 = TCPConnect("a.com", 123)

But, if i have:

a.com:123

b.com:123

c.com:123

.... many servers and I don't know how much

How connect to many servers and send to all servers a packet random?

Please help me and thank you very much!!!

Share this post


Link to post
Share on other sites



Arrays are your friend :D

Yes, thank you very much.

I'm coding a programing for learn. It's my exercise

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0