[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [openss7] Getting through



Chuck,

Let's see...  "Hello World" is 12 bytes (including the
null terminator), and you are sending it 10 times?  That
is 120 bytes in the receive buffer.  If you only read one
of them, that leaves 108 bytes in the receive buffer.
Is that a problem?  How many are you reading before calling
TIOCINQ?  If you are performing multiple reads (recv) are
you sure that you are actually being returned data from
the call?

TIOCINQ just goes through the receive buffer counting up
the messages (or partial messages) which have not been
marked as received by the user.

--Brian

Chuck Winters wrote:                      Tue, 12 Jun 2001 15:57:29

> Brian,
> 	I also checked to see how much data was in the receive buffer because
> if the two programs are run, notice we still get Hello World on the
> reader.  Using the FIONREAD and also TIOCINQ iotcl's, I get an
> increasing amount of data in the buffer(up to 108 bytes!).  I ran
> ethereal, and "Hello World" is only getting sent 10 times.  Does this
> point to a buffer problem, or am I doing something wrong?
> 
> Thanks,
> Chuck
> Chuck Winters wrote:
> > 
> > Brian,
> >         Thanks for the patch.  Things are coming along much better now.  I have
> > one question though, is the recv and send system calls blocking?  I have
> > a test program which seems to show that they are not blocking, and
> > something else is going wrong.  I am a little confused.
> > 
> > Thanks,
> > Chuck
> > --
> > Chuck Winters                            | Email:  cwinters@atl.lmco.com
> > Distributed Processing Laboratory        | Phone:  856-338-3987
> > Lockheed Martin Advanced Technology Labs |
> > 1 Federal St - A&E-3W                    |
> > Camden, NJ 08102                         |
> > 
> <clip>

-- 
Brian F. G. Bidulock    ¦ The reasonable man adapts himself to the ¦
bidulock@openss7.org    ¦ world; the unreasonable one persists in  ¦
http://www.openss7.org/ ¦ trying  to adapt the  world  to himself. ¦
                        ¦ Therefore  all  progress  depends on the ¦
                        ¦ unreasonable man. -- George Bernard Shaw ¦