Can you show some code where you're using sockets and describe what happens when you don't have enough?
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Joined: Nov 01, 2006
I think I found out I need something called multithreading. I want to make more then one connection to a https site.
Joined: Jan 29, 2003
Yup, threading will let you retrieve from several sites or pages at once. Given my home PC and network and the program I wrote, I find it useful to run maybe four at once, but more than that get in each other's way.
Try the Sun Concurrency Tutorial for a great introduction to threads. You'll want to capture the results from each thread, so you might use join() or a cool new class like Future. Work through the tutorial and see if those words make sense then.