*BSD News Article 1989


Return to BSD News archive

Xref: sserve comp.unix.questions:24460 comp.unix.bsd:2024 comp.unix.programmer:5873
Path: sserve!manuel!munnari.oz.au!spool.mu.edu!caen!nic.umass.edu!hamp.hampshire.edu!dhirmes
From: dhirmes@hamp.hampshire.edu
Newsgroups: comp.unix.questions,comp.unix.bsd,comp.unix.programmer
Subject: recvfrom() problems
Message-ID: <1992Jul17.125731.1@hamp.hampshire.edu>
Date: 17 Jul 92 16:57:31 GMT
Article-I.D.: hamp.1992Jul17.125731.1
Sender: usenet@nic.umass.edu (USENET News System)
Organization: Hampshire College
Lines: 13
Nntp-Posting-Host: hamp.hampshire.edu

I'm writing a program using BSD socket interface.  I'm trying to 
utilize the UDP (datagram) service, but when I run my programs, I
get a "Bad Address" error.  I've tried several examples from tutorials,
 but I get the same error.  I'm working with SunOS 4.0.1 and some of
the examples were written for Ultrix.  I was told there might be slight 
differences in the TCP/IP structures used by BSD implementations. I'vewritten
programs usinSOCK_STREAM which have worked fine, which adds to my
confusion. Oh, and the error  only occurs when I attempt a recvfrom(),
it appears to work when I use sendto().

Can anyone help me out here?

dhirmes@hamp.hampshire.edu