Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!uwvax!cottage!lm From: lm@cottage.WISC.EDU (Larry McVoy) Newsgroups: comp.unix.questions Subject: Re: Another problem with recvfrom socket call Message-ID: <3539@spool.WISC.EDU> Date: Wed, 6-May-87 20:41:29 EDT Article-I.D.: spool.3539 Posted: Wed May 6 20:41:29 1987 Date-Received: Sat, 9-May-87 01:36:28 EDT References: <438@artecon.artecon.UUCP> Sender: news@spool.WISC.EDU Reply-To: lm@cottage.WISC.EDU (Larry McVoy) Organization: U of Wisconsin CS Dept Lines: 21 Keywords: help In article <438@artecon.artecon.UUCP> tony@artecon.artecon.UUCP (Anthony D. Parkhurst) writes: > >Ok, I am now using SOCK_DGRAM, and the recvfrom call is successful, >except that it doesn't put the sender's address in the 'from' parameter. > >(Oh, BTW, please don't tell me that this will only work with AF_INET and >NOT AF_UNIX, I would rather it work in the UNIX domain :-) Well, I think you're out of luck. AF_UNIX has been broken for a long time and I I'm not sure that there exists a working version anywhere. BSD had problems up through 4.2, such as getsockname() didn't work... This is probably something similar... Why won't you use AF_INET sockets? If you use "localhost" for the host name it gives you something that ought to be very close (if not exactly) what you are looking for. And it works (strong incentive...) --- Larry McVoy lm@cottage.wisc.edu or uwvax!mcvoy "What a wonderful world it is that has girls in it!" -L.L.