From: Anastasia Gornostaeva <ermine@ermine.pp.ru>
To: caml-list@inria.fr
Subject: Re: [Caml-list] dns client
Date: Thu, 25 Sep 2003 20:17:08 +0400 [thread overview]
Message-ID: <20030925161708.GA36499@ermine.home> (raw)
In-Reply-To: <20030925155119.GA14079@redhat.com>
On Thu, Sep 25, 2003 at 04:51:19PM +0100, Richard Jones wrote:
> On Thu, Sep 25, 2003 at 07:35:29PM +0400, Anastasia Gornostaeva wrote:
> > Hello.
> >
> > Is there any dns client written on Ocaml? At least i want to get records with
> > specified types such as A, NS, MX, etc.
> > I cannot write a wrapper to C library, i'm afraid about GC problems.
>
> If you really don't want to write a wrapper, how about using an
> external program, eg:
>
> let chan = Unix.open_process_in "host -t mx ibm.com"
> (* some code to parse the 7th field of the response - eg. using Pcre *)
Well, it is an interesting solution. but what about portability?
I saw, Erlang/OTP has more nice solution - a module inet_res that allows some
kinda of my requests above.
> However writing C wrappers couldn't really be much simpler with OCaml
> (compare it to Perl or Java some time!).
I know, I ask here for ready solutions :)
ermine
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2003-09-25 16:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-25 15:35 Anastasia Gornostaeva
2003-09-25 15:51 ` Richard Jones
2003-09-25 16:17 ` Anastasia Gornostaeva [this message]
2003-09-25 17:15 ` Richard Jones
2003-09-25 16:18 ` Eric C. Cooper
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=20030925161708.GA36499@ermine.home \
--to=ermine@ermine.pp.ru \
--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