caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: David Brown <caml-list@davidb.org>
To: caml-list@inria.fr
Subject: Re: [Caml-list] calling telnet from a caml program
Date: Wed, 6 Nov 2002 11:51:38 -0800	[thread overview]
Message-ID: <20021106195138.GA10650@opus.davidb.org> (raw)
In-Reply-To: <20021106173914.GA2260@clipper.ens.fr>

[-- Attachment #1: Type: text/plain, Size: 828 bytes --]

On Wed, Nov 06, 2002 at 06:39:14PM +0100, Nicolas George wrote:

> Le sextidi 16 brumaire, an CCXI, Andrei Errapart a ?crit?:
> > If it is possible in C, then it is possible in OCaml, too. Most 
> > probably some termios(3) calls are needed, but not much more.

> There is nothing impossible, but there are horripilating portability
> problems here.

The CDK contains an mlexpect program, which, if it works, should do
that.

However, what is it you are trying to do with the "telnet" protocol.
For the most part, telnet is just a simple connection to a port.
Unix.open_connection will probably do exactly what you want, just make
sure you get flushing working.

If you need to deal with the tty management functionality of telnet (say
for something interactive) that will take a bit more work.

Dave Brown

[-- Attachment #2: Type: application/pgp-signature, Size: 240 bytes --]

  reply	other threads:[~2002-11-06 19:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-06 16:11 Alan Schmitt
2002-11-06 16:26 ` Andrei Errapart
2002-11-06 16:34   ` Alan Schmitt
2002-11-06 17:20     ` Andrei Errapart
2002-11-06 17:39       ` Nicolas George
2002-11-06 19:51         ` David Brown [this message]
2002-11-06 20:56       ` Gerd Stolpmann
2002-11-06 21:07 ` Alan Schmitt

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=20021106195138.GA10650@opus.davidb.org \
    --to=caml-list@davidb.org \
    --cc=caml-list@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;
as well as URLs for NNTP newsgroup(s).