[mercury-users] socket support in io

Thomas Conway conway at cs.mu.OZ.AU
Mon Oct 4 10:03:09 AEST 1999


On Sat, Oct 02, 1999 at 12:23:12AM EST, Michael Day wrote:
> 
> Hi,
> 
> has anyone done any socket programming in Mercury before? There do not
> appear to be any socket functions in the io module; would it make sense
> for an application to define its own in such a way as to allow use of the
> io routines for acting on binary streams?
> 
> However, from what I can see the io module does not appear to have
> inherent support for non-blocking io either. Is it worth an application
> attempting to extend the io module at all, or just carve out its own? Are
> there any significant changes waiting in the future for the io module?

I have a posix-subset that includes facilities for non-blocking IO.
It's not compatible with the IO module (it uses file descriptors not
mercury streams). If you like I could post it. It's uncommented at this
stage, and has only partial coverage of the posix standard, but if you
were to add to it, noone would complain. :-)

Thomas
-- 
 Thomas Conway )O+     Every sword has two edges.
     Mercurian            <conway at cs.mu.oz.au>
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list