Excelente, Y eso que esta echo a lo rápido, pero quedo muy bien, voy a modificarlo con tu permiso.
Código
using System.Collections.Generic; using System.Net; using System.Net.Sockets; using System.Net; // Double Imports xD XD - OWNED namespace MuestraClienteMultiple{ class program { public class Conexion { byte[] buffer; TcpClient client; string host; public Conexion(string hostname, int bufferSize){ host =hostname; } public string GetData(){ string result=String.Empty; try{ client.Connect(s, 80); // Falto un punto, punto primordial (? if (client.Connected) { result= sr.ReadToEnd()); } } finally{ conex.Close(); } return result; } } static int main() { string[] hosts = { "google.com", "www.raul338.com.ar" }; // direcciones servidor List<Conexion> conexiones = new List<Conexion>(hosts.Length); // Lista del mismo tamaño de las direcciones foreach (string s in hosts) { //conex.buffer = new Byte[2048]; // 2 Mb de buffer //conex.client = new TcpClient(); // Direccion en el puerto 80 conexiones.Add(conex); Console.WriteLine(conex.GetData()); } // foreach } }// class program }// namespace
Esta bien, salvo por eso, de donde aparece la variable S


flashnet, tambien deberias a aprender a manejarlos asincronicamente(con delegados) asi no se te tilda la aplicacion mientras pide los datos

