On Wed, 22 Oct 2003 03:46:51 -0700 (PDT), Cherry Cortes<osagimakoto@yahoo.com> wrote;
>
> We have a loop that only exits if there are some characters
> received from the parallel port but the loop never breaks even we
> have sent data. By the way, what we're trying to do is to connect 2
> pcs wherein 1 acts as sender and the other as receiver ^_^
>
Well, you can't really do that with two PCs. Both of them are the
host end of the IEEE-1284 standard, and in order to send data from one
to the other one of them has to act as host and one of them has to act
as a preipheral. I believe you should be able to transfer data by
manipulating the data and control lines directly, but you won't be
able to do it just by doing a read() call. You'll also probably have
to come up with your own protocol. LapLink used to do this sort of
thing -- they had a special cable and their own software. Are they
still in business?
-- Dave Strauss
> Tim Waugh <twaugh@redhat.com> wrote:On Wed, Oct 22, 2003 at 03:31:55AM -0700, Cherry Cortes wrote:
>
> > > errno was EAGAIN and call to PPCLAIM was successful.
> >
> > You set O_NONBLOCK?
> >
> > Tim.
> > */
> >
> >
> > Yes, we already did. Have we missed any procedures/calls?
>
> Then you need to call read() again. :-)
>
> EAGAIN Non-blocking I/O has been selected using O_NONBLOCK and no data
> was immediately available for reading.
>
> Tim.
> */
>
>
-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --
This archive was generated by hypermail 2b29 : Wed Oct 22 2003 - 08:51:34 EDT