Created attachment 534 [details] Test code I compile and run code as in attachment with dmd 2.037 under linux and always get number of sent bytes n=-1 and local address 0.0.0.0:0. But when I use dmd 1.051 (on linux) all works good: n=45 and local address 192.168.0.100:37563. Also I check it under Windows with dmd 2.036 and all works.
Similar problem. Digital Mars D Compiler v2.038. Ubuntu 9.10(almost pure). With telnet all works perfectly. I'll add test code and strace-dump into attachments.
Created attachment 543 [details] Test-code 2. Modified example code from some resources.
Created attachment 544 [details] Full "strace" log from TestCode2 with "ya.ru index" arguments
In 2.039 too. My 2 friends have similar problem.
Tested on gentoo, fedora, debian and mops-linux. One result =/
Created attachment 545 [details] strace dump for running Test-code 2 with "ya.ru index"
This bug is duplicate of #2835. The problem is caused by missing sin.sin_family initialization. Please apply the fix suggested in bug #2835.
(In reply to comment #7) > This bug is duplicate of #2835. > > The problem is caused by missing sin.sin_family initialization. > Please apply the fix suggested in bug #2835. Great. Now waiting for fixing in repo... *** This issue has been marked as a duplicate of issue 2835 ***