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: sockets: recvfrom call Message-ID: <3507@spool.WISC.EDU> Date: Fri, 1-May-87 12:07:08 EDT Article-I.D.: spool.3507 Posted: Fri May 1 12:07:08 1987 Date-Received: Sat, 2-May-87 16:24:44 EDT References: <433@artecon.artecon.UUCP> Sender: news@spool.WISC.EDU Reply-To: lm@cottage.WISC.EDU (Larry McVoy) Organization: U of Wisconsin CS Dept Lines: 15 Keywords: help *) tony@artecon.artecon.UUCP (Anthony D. Parkhurst) writes: *) According to my manuals, the recvfrom call does not require the *) socket to be connected. However, I am getting an immediate *) return with the error: Socket not connected. Any ideas? *) .... *) static struct sockaddr name = {AF_UNIX,SOCKNAME}; *) .... *) if(recvfrom(s,&imsg,sizeof(imsg),0,&nname,&nnamelen) < 0){ Methinks that you must connect stream sockets. You can do what you're trying to do here with UDP (datagram) sockets, but not stream sockets. Mail me for examples of UDP & TCP socket code if you like. Larry McVoy mcvoy@rsch.wisc.edu or uwvax!mcvoy "What a wonderful world it is that has girls in it!"