Home | Index | Dotnet4all Snippets | Submit resources
About | Mail us 





System.Net.Sockets (Friday, October 08, 2004)



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

 
Previous Posts
    - Grouped Headers in a datagrid
    - How to add an attachment to an expression mailto
    - HTTPWebRequest - better server error handling
    - Windows Forms datagrid won't show more than 255 ro...
    - How to create an About Dialog
    - equivalent of a Session variable in Windows Forms?...
    - Webbrowser and Fake filename into the IMG src attr...
    - How to send Crystal Reports report by email
    - Hiding a form's Close ControlBox button
    - How to Deactivate all MDI child forms



Disclaimer & Terms of Use | DotNet4All.Com concept & © 2004 - 2007 by Zelders² - Holland