News:

  • October 14, 2025, 05:09:26 AM

Login with username, password and session length

Author Topic: STREAMOUT - Success & Error Bits  (Read 2458 times)

sgsims

  • Hero Member
  • *****
  • Posts: 127
STREAMOUT - Success & Error Bits
« on: September 01, 2016, 01:00:14 AM »
What would cause the Error Bit to trigger vs the Success bit.  And what constitutes the "Completion" of the instruction.


BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6126
  • Yes Pinky, Do-more will control the world!
Re: STREAMOUT - Success & Error Bits
« Reply #1 on: September 02, 2016, 12:40:46 PM »
What would cause the Error Bit to trigger vs the Success bit.  And what constitutes the "Completion" of the instruction.

Any failure to send the bytes will trigger error. There generally aren't too many things and they are device specific.

The instruction is completed when the driver level signals either success or failure. On success that means that as best as we know the bytes have been sent. I say "as best as we know" because in some cases you have dumped data into a TCP stream output and the stack appears to have taken it, but the specifics of what's going on in the stack are somewhat masked to the driver. Object oriented design is both good and bad in that it hides the details of how an object performs an action...yeah, the sword cuts both ways. Failure is generally immediate and is the result of a broken connection, missing module...usually something bad.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

sgsims

  • Hero Member
  • *****
  • Posts: 127
Re: STREAMOUT - Success & Error Bits
« Reply #2 on: September 02, 2016, 12:55:47 PM »
Perfect..Thanks Bob..that helps