home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / misc / 4613 < prev    next >
Encoding:
Internet Message Format  |  1992-12-17  |  1.3 KB

  1. Xref: sparky comp.unix.misc:4613 comp.sys.next.programmer:7800
  2. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!tamsun.tamu.edu!lusty.tamu.edu!lusty
  3. From: lusty@lusty.tamu.edu (Lusty Wench)
  4. Newsgroups: comp.unix.misc,comp.sys.next.programmer
  5. Subject: Re: Need help with setsockopt
  6. Date: 17 Dec 1992 18:27:58 GMT
  7. Organization: Me
  8. Lines: 20
  9. Message-ID: <1gqgreINNnkt@tamsun.tamu.edu>
  10. References: <1992Dec17.033142.17836@dartvax.dartmouth.edu> <1992Dec17.112537.14836@cs.tu-berlin.de>
  11. NNTP-Posting-Host: lusty.tamu.edu
  12.  
  13.  
  14.  
  15. In article <1992Dec17.112537.14836@cs.tu-berlin.de> net@cs.tu-berlin.de (Oliver Laumann) writes:
  16. >
  17. >The "optval" and "optlen" arguments you specified are wrong.  SO_LINGER
  18. >requires the optval argument to be a pointer to a "struct linger", and
  19. >SO_REUSEADDR expects a pointer to an "int" indicating whether you want
  20. >to enable or disable the option.  The final optlen argument always gives
  21. >the size of the option value:
  22.  
  23. <munch>
  24.  
  25. Yep, last night I read the documentation again for the umpteenth time,
  26. paying attention to every last detail associated with SO_LINGER and
  27. SO_REUSEADDR, and ended up doing pretty much exactly what you described,
  28. which got rid of the setsockopt failures :).  Now if I could just get
  29. the rest of this code to work correctly....
  30.  
  31. Lusty
  32.  
  33.