Problems with Socket on linux

Walter Bright newshound1 at digitalmars.com
Wed Dec 23 02:51:05 PST 2009


4ybaka wrote:
> Hi! I run code like this on linux (Arch and Kubuntu 9.04): TcpSocket
> socket = new TcpSocket(new InternetAddress("www.google.com", 80)); 
> socket.send("GET /intl/en_ALL/images/logo.gif HTTP/1.0\r\n\r\n"); 
> SocketStream socketStream = new SocketStream(socket); num =
> socketStream.read(data); And I always have num=0. socket.localAddress
> is also zero. For remoteAddress I have an exception: "Transport
> endpoint is not connected.". I've tried it run on Windows XP and all
> work and all addresses resolved. Also I test equal functionality on
> linux with Tango (HttpGet) and all also work. So any idea what's
> wrong?

No, but if you figure it out, can you please post a patch? Also, can you 
post this to bugzilla, please?



More information about the Digitalmars-d mailing list