Found the following interesting discussion in the Newsgroups:
| System.Net.Sockets by: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... =) | |
| Reply: by:AlexS | |
| 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 | |
| Reply: by:Micromause | |
| 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?... | |
| Reply: by:Chad Z. Hower aka Kudzu | |
Its just a class like anything else. Its no different than declaring arrays of listboxes. -- Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/ "Programming is an art form that fights back" | |
Posted by Xander Zelders

0 Comments:
Post a Comment
<< Home