Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "Berke Durak" <berke.durak@gmail.com>
To: asmadeus77@gmail.com
Cc: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] OCaml-ssl and input_string
Date: Tue, 6 May 2008 12:12:51 +0200	[thread overview]
Message-ID: <b903a8570805060312ic0cffc6oacc317aaf363ced9@mail.gmail.com> (raw)
In-Reply-To: <b79ece760805051254p65298945l58cac76535040bf4@mail.gmail.com>

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

Hello,

>From what I've inferred from ocaml-ssl's documentation, its "read" function
has Unix-like non-blocking
semantics.

This means that read returns the number of bytes available, not the number
of bytes requested.

Hence you need an extra buffering/parsing layer on top of SSL sockets.
However you are using
IMAP, which is line-oriented, I guess Ssl.input_string should do what you
want.
-- 
Berke

[-- Attachment #2: Type: text/html, Size: 466 bytes --]

  reply	other threads:[~2008-05-06 10:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-05 19:54 asmadeus77
2008-05-06 10:12 ` Berke Durak [this message]
2008-05-06 10:33   ` asmadeus77

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=b903a8570805060312ic0cffc6oacc317aaf363ced9@mail.gmail.com \
    --to=berke.durak@gmail.com \
    --cc=asmadeus77@gmail.com \
    --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