Fast I/O with sockets

2003-09-16 Thread Peter Simons
Hi, I was wondering how to read and write from a Socket in the most performant way. According to the library documentation from GHC, 'hGetBuf' and 'hPutBuf' are the way to go. But my problem with these functions is that they expect to read exactly the number of bytes I gave them! The IO computati

RE: Fast I/O with sockets

2003-09-16 Thread Simon Marlow
> I was wondering how to read and write from a Socket in the most > performant way. According to the library documentation from GHC, > 'hGetBuf' and 'hPutBuf' are the way to go. But my problem with these > functions is that they expect to read exactly the number of bytes I > gave them! > > The I

RE: simpler I/O buffering [was: RE: An IO Question from a Newbie]

2003-09-16 Thread Simon Marlow
> Writing a sequence of characters across the interface I'm > proposing is a > request by the writing program for those characters to appear > at their > destination "soon". Ideally, "soon" would be "immediately"; > however, the > characters' appearance may deliberately be delayed ("buffer

Querying DNS from Haskell

2003-09-16 Thread Peter Simons
Hi, is anyone aware of a library for Haskell, which allows to query domain name servers for MX, A, and PTR records in a non-blocking way? My first guess was to create an Interface to ADNS [1], but I figured, maybe someone else has already solved this problem? Peter [1] http://www.gnu.org/softw

Re: Querying DNS from Haskell

2003-09-16 Thread Tomasz Zielonka
On Tue, Sep 16, 2003 at 03:59:10PM +0200, Peter Simons wrote: > Hi, > > is anyone aware of a library for Haskell, which allows to query domain > name servers for MX, A, and PTR records in a non-blocking way? > > My first guess was to create an Interface to ADNS [1], but I figured, > maybe someone