code_junkie

Why am I losing data when using a vxWorks pipe?

Nov 11th, 2011
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. Init()
  2. {
  3. fd = open("/pipe/mydev", O_RDWR, 0777);
  4. ...
  5. }
  6.  
  7. taskRx()
  8. {
  9. ...
  10. len = read(fd, rxbuf, MAX_RX_LEN);
  11. ...
  12. }
  13. taskTx()
  14. {
  15. ...
  16. len = write(fd, txbuf, txLen);
  17. ...
  18. }
Add Comment
Please, Sign In to add comment