On 6/26/06, netsql <[EMAIL PROTECTED]> wrote:

I need to create a loop to send an ip ping to 500 addresses at time (and
find out if ip conected or timedout to each)... and then repeat loop.

Use ThreadPool and SOcketConnector? how to get started?


SocketConnector.connect() works asynchronously.  So you can initiate as many
connections as you want with in the range your O/S support.
SocketConnector.connect() allows you to specify a connect timeout value,
too.  Once called, it will return ConnectFuture object which will tell you
when the connection attempt is finished.

Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6

Reply via email to