[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Bidirectional io.open()...anyone got one?
- From: gary ng <garyng2000@...>
- Date: Fri, 6 Jul 2007 20:08:09 -0700 (PDT)
--- Javier Guerra Giraldez <firstname.lastname@example.org> wrote:
> what you're asking for could (in theory, i guess)
> would need sockets
> (which are bidirectional). you creae a socket pair
> (using socketpair(),
> of course), give one to the process creator and use
> the other to read/write
The hard part though is, how to coordinate the reading
and writing in a non-threading environment ? Reading
and writing from the same process in such a situation
seems to create a natural deadlock situation.
Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center.