home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / question / 9315 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  1.1 KB

  1. Path: sparky!uunet!mcsun!fuug!demos!kiae!glas!demos!hamp.hampshire.edu!dhirmes
  2. From: dhirmes@hamp.hampshire.edu
  3. Newsgroups: comp.unix.questions
  4. Date: 17 Jul 92 20:57 MDT
  5. Subject: recvfrom() problems
  6. Sender: Notesfile to Usenet Gateway <notes@glas.apc.org>
  7. Message-ID: <1992Jul17.125731.1@hamp.hampshir>
  8. Nf-ID: #N:1992Jul17.125731.1@hamp.hampshir:-2006760086:001:660
  9. Nf-From: hamp.hampshire.edu!dhirmes    Jul 17 20:57:00 1992
  10. Lines: 16
  11.  
  12.  
  13. I'm writing a program using BSD socket interface.  I'm trying to 
  14. utilize the UDP (datagram) service, but when I run my programs, I
  15. get a "Bad Address" error.  I've tried several examples from tutorials,
  16.  but I get the same error.  I'm working with SunOS 4.0.1 and some of
  17. the examples were written for Ultrix.  I was told there might be slight 
  18. differences in the TCP/IP structures used by BSD implementations. I'vewritten
  19. programs usinSOCK_STREAM which have worked fine, which adds to my
  20. confusion. Oh, and the error  only occurs when I attempt a recvfrom(),
  21. it appears to work when I use sendto().
  22.  
  23. Can anyone help me out here?
  24.  
  25. dhirmes@hamp.hampshire.edu
  26.  
  27.  
  28.