Checking if a port is listening
Marc Schütz via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Mar 24 05:17:35 PDT 2016
On Wednesday, 23 March 2016 at 21:37:09 UTC, Lucien wrote:
> When I remove the Thread.sleep, it doesn't find all adresses.
> Why ?
Socket.select() will wait _at most_ 100 msecs. If a socket gets
ready before that timeout, it will return immediately. Therefore,
you might not get the full TIMES*100 msecs, and some hosts might
not have responded in time.
More information about the Digitalmars-d-learn
mailing list