Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Serge Aleynikov <serge@hq.idt.net>
To: Frederico Valente <a25285@alunos.det.ua.pt>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Udp connection problem
Date: Tue, 09 Jan 2007 16:24:09 -0500	[thread overview]
Message-ID: <45A407F9.2080807@hq.idt.net> (raw)
In-Reply-To: <45A2DA8C.8020709@alunos.det.ua.pt>

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


      reply	other threads:[~2007-01-09 21:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-05 19:23 Frederico Valente
2007-01-06 10:23 ` [Caml-list] " Stéphane Glondu
2007-01-06 16:52   ` Frederico Valente
2007-01-08 14:27 ` Serge Aleynikov
2007-01-08 23:58   ` Frederico Valente
2007-01-09 21:24     ` Serge Aleynikov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45A407F9.2080807@hq.idt.net \
    --to=serge@hq.idt.net \
    --cc=a25285@alunos.det.ua.pt \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox