473,508 Members | 2,255 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

System.Net.Sockets

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... =)
Jul 21 '05 #1
4 1138
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

"news.microsoft.com" <ma***@hotmail.com> wrote in message
news:OT**************@TK2MSFTNGP09.phx.gbl...
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... =)

Jul 21 '05 #2
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

"news.microsoft.com" <ma***@hotmail.com> wrote in message
news:OT**************@TK2MSFTNGP09.phx.gbl...
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... =)

Jul 21 '05 #3
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?...

"AlexS" <sa***********@SPAMsympaticoPLEASE.ca> wrote in message
news:uR**************@TK2MSFTNGP12.phx.gbl...
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

"news.microsoft.com" <ma***@hotmail.com> wrote in message
news:OT**************@TK2MSFTNGP09.phx.gbl...
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... =)


Jul 21 '05 #4
"Micromause" <mause@hotmail--.com> wrote in
news:um*************@TK2MSFTNGP09.phx.gbl:
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.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
6839
by: Sagaert Johan | last post by:
i get this error if i write this : using System.Net.Sockets; .... .... TcpClient tcp; tcp=new TcpClient();
0
1624
by: Sagaert Johan | last post by:
this code using System; using System.Net.Sockets; namespace ConsoleApplication1 { /// <summary> /// Summary description for Class1. /// </summary>
4
6297
by: BadOmen | last post by:
Hi, What is the different between 'System.Net.Sockets.Socket' and 'System.Net.Sockets.TcpClient'? When do I use System.Net.Sockets.TcpClient and System.Net.Sockets.Socket?? Yours, Jonas
0
1507
by: Tim Wagaman | last post by:
I an having issuses with a loop I am running to keep checking for messages coming across our line. The goal: Listen for messages on port 5001 and print the messages into a text file. The port...
2
2336
by: Stressed Out Developer | last post by:
We have an application that has a 200 count loop that does the following: ' Each time thru the loop we pass the next IP Address is a range (aka 192.168.4.50 thru 192.168.4.254) Try If...
6
12982
by: Aero | last post by:
Hi, My window application written in C# is throwing following exception while connecting to one FTP location The type initializer for System.Net.Sockets.Socket threw an exception This exe is...
3
11567
by: J C | last post by:
Hi, I'm using UDPClient to make a simple DNS server. I notice that intermittently and unpredictibly I get: Unhandled Exception: System.Net.Sockets.SocketException: An existing connection...
4
4998
by: sd1978 | last post by:
Hi, I have placed a webservice in the webserver. When I access it from a webpage, default.aspx on a click of a button i get the following error: No connection could be made because the target...
2
2573
by: pedrito | last post by:
I've got an app that downloads from several concurrent threads. Occasionally, I get an expcetion trying to read the HttpWebResponse stream... Sorry, the code isn't short, but I figured best to...
1
4437
by: larspeter | last post by:
Hi all. I have a problem with TcpClient ... I am conneting to a server with TcpClient and returning the answer through a webservice. It actully all works fine. BUT if I make a lot of...
0
7229
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7129
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7333
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5637
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3208
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3194
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
428
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.