[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Berke Durak <berke.durak@g...> |
| Subject: | Re: [Caml-list] OCaml-ssl and input_string |
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