Re: [ILUG] tough programming q's

From: Kenn Humborg (kenn at domain bluetree.ie)
Date: Mon 19 Apr 1999 - 15:57:49 IST


kevin lyda wrote:
>
> programming question: i'm looking for a blocking read/recv call that
> times out. it would be best if it didn't involve signals. ideas?
> also, i'm looking for this for efficiency reasons. if i did it
> with a select and then a read it will involve more data copying
> under linux, yes? what about other unicies? it would be nice if the
> solution was portable (possibly expressed using ACE).

<Asbestos on>

Use VMS. $QIOW(..., IO$_READVBLK|IO$M_TIMEOUT, ..., buf, bytes, timeout, ...).

Then write a wrapper layer that marshals all your
blocking I/O over to the VMS machine.

Ahh, those were the days...

What? You mean you don't have a VMS box??? :-)

<Asbestos still on>

Kenn



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:08 GMT