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

  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"








0 Comments:

Post a Comment

 
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

Archives
    - 10/03/2004 - 10/10/2004
    - 10/10/2004 - 10/17/2004
    - 10/17/2004 - 10/24/2004
    - 10/24/2004 - 10/31/2004
    - 10/31/2004 - 11/07/2004
    - 11/21/2004 - 11/28/2004
    - 11/28/2004 - 12/05/2004
    - 12/05/2004 - 12/12/2004
    - 12/12/2004 - 12/19/2004
    - 12/19/2004 - 12/26/2004
    - 12/26/2004 - 01/02/2005
    - 01/23/2005 - 01/30/2005
    - 01/01/2006 - 01/08/2006
    - 09/24/2006 - 10/01/2006

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