home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / sysv386 / 14529 < prev    next >
Encoding:
Internet Message Format  |  1992-09-15  |  1.6 KB

  1. Path: sparky!uunet!usc!sdd.hp.com!spool.mu.edu!yale.edu!jvnc.net!rutgers!modus!dyna!osra!felix!eb
  2. From: eb@felix.Sublink.Org (Enrico Badella)
  3. Newsgroups: comp.unix.sysv386
  4. Subject: What is the meaning of EPROTO (Protocol error) on select()?
  5. Message-ID: <849@felix.Sublink.Org>
  6. Date: 11 Sep 92 18:04:43 GMT
  7. Organization: Soft*Star s.r.l, Torino, Italy
  8. Lines: 30
  9.  
  10. Hi,
  11.  
  12. As the Subject line states I'm trying to find a meaning of EPROTO
  13. Protocol error (errno = 71) that bites me at random times on
  14. a select().
  15. My environment is SCO-ODT 1.1 and my application simply reads/writes
  16. from 2 different TCP/IP sockets and sets a timeout. After reading
  17. some data it posts it on a message queue and returns on the select().
  18.  
  19. I reported the problem to SCO and got the following answer:
  20.  
  21. begin quote
  22. "EPROTO Protocolo error: Some protocol error occured. This error is device
  23.  specific, but is generally not related to a hardware failure. An EPROTO
  24.  error can come from any device that is serviced by ioctl(S) calls. You 
  25.  must debug the code to determine what call is causing the problem"
  26. end quote
  27.  
  28. The first part is extracted from their manuals.
  29. My code never calls a ioctl(2) but does TCP/IP activity.
  30. The last sentece was a revelation to me! I though code would self repair.
  31.  
  32. Thanks to for any suggestions ... maybe I should also thank sco for
  33. giving me a daily set of new problems so I'll never become lazy.
  34.  
  35. -- 
  36. Enrico Badella                Internet: eb@felix.sublink.org
  37. Soft*Star s.r.l.                      eb@icnucevx.cnuce.cnr.it
  38. Via Camburzano 9            Phone:    +39-11-746092
  39. 10143 Torino, ITALY            Fax:      +39-11-746487
  40.