From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 25C94BC0A for ; Tue, 9 Jan 2007 22:24:11 +0100 (CET) Received: from mail.corp.idt.net (mail.corp.idt.net [169.132.25.53]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l09LOA6f006502 for ; Tue, 9 Jan 2007 22:24:10 +0100 Received: from [169.132.9.113] (account saleyn HELO [169.132.9.113]) by mail.corp.idt.net (CommuniGate Pro SMTP 4.2.10) with ESMTP id 196150718; Tue, 09 Jan 2007 16:24:09 -0500 Message-ID: <45A407F9.2080807@hq.idt.net> Date: Tue, 09 Jan 2007 16:24:09 -0500 From: Serge Aleynikov User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Frederico Valente Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Udp connection problem References: <459EA5A0.8060000@alunos.det.ua.pt> <45A254DF.4020909@hq.idt.net> <45A2DA8C.8020709@alunos.det.ua.pt> In-Reply-To: <45A2DA8C.8020709@alunos.det.ua.pt> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 45A407FA.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; printf:01 printf:01 beginner's:01 ocaml:01 bug:01 beginners:01 wrote:01 wrote:01 caml-list:01 caml-list:01 bin:01 caml:02 caml:02 archives:02 caml-bugs:02 There's not enough details in your email about the server, but if I assume that it merely echos your message back to the client, then the message would need to contain a new line at the end in order for the input_line function to be able to fetch the response line: while true do output_string outChannel "(message)\n"; (* !!! *) flush outChannel; let r=input_line inChannel in Printf.printf "%s\n" r; done Serge Frederico Valente wrote: > Serge Aleynikov wrote: >> Frederico, >> >> I believe the problem is that you are opening a server socket on a >> local address "127.0.0.1" rather than on a publicly-known address >> (stored in DNS) or any ("0.0.0.0"), and therefore only a client on the >> same host will be able to reach the server. >> >> Regards, >> >> Serge > > Well, the server is on my machine, as well as the client. That's why > I've used that address. I've killed the firewall so that I could rule > out that source of problems as well. So I guess the problem lies in my > code... :S > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > -- Serge Aleynikov Routing R&D, IDT Telecom Tel: +1 (973) 438-3436 Fax: +1 (973) 438-1464