System.Net.Sockets

  • Thread starter Thread starter news.microsoft.com
  • Start date Start date
N

news.microsoft.com

How can I open more then one connection? Let's say open http://www.yahoo.com
then extract all of the image URLs so we can download them. But don't rely
on a single connection. I really need some help here... =)
 
Exactly in same way as you open single one.
You can do that from separate thread or separate process. For example start
your test app twice with 2 different targets - you will see 2 connections
open.

HTH
Alex
 
What if I need to open an unknown amount of connections? How can I do that?
The only way I can open more then one connection is to declare them, but how
do I declare an array of connections?...
 
Micromause said:
What if I need to open an unknown amount of connections? How can I do
that? The only way I can open more then one connection is to declare
them, but how do I declare an array of connections?...

Its just a class like anything else. Its no different than declaring arrays
of listboxes.
 
Back
Top