From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,e2fe95e4fd8e27a8 X-Google-Attributes: gidfee84,public From: kr Subject: Re: bind, socket, EADDRNOTAVAIL Date: 1999/11/15 Message-ID: #1/1 X-Deja-AN: 549094733 References: Content-Type: TEXT/PLAIN; charset=US-ASCII X-Complaints-To: usenet@news.cc.oberlin.edu X-Trace: news.cc.oberlin.edu 942717201 28419 132.162.140.248 (16 Nov 1999 01:53:21 GMT) Organization: Oberlin College Mime-Version: 1.0 NNTP-Posting-Date: 16 Nov 1999 01:53:21 GMT Newsgroups: comp.unix.osf.osf1 PS. (And if this isn't a mark of desperation...) I also tried alternating whether or not I used htonl... The only reason you see it in the sample code is as the result of a last, desperate attempt to jiggle parameters around in vain hopes something would click. Of course, it did not. So if you tell me that part of the sample is bad, yes, I know, I've tried it without as well |< Katherine Russell Programmer/ Analyst, Oberlin College Development Resources russell@ais.oberlin.edu . ignore, override, become On Mon, 15 Nov 1999, kr wrote: > I've run into an obstacle of sorts trying to port a program to Tru64 / > etc: > ...... > > if ((in_port=socket(AF_INET,SOCK_STREAM,0)) < 0) { > perror("socket"); exit(EXIT_FAILURE); > } > ...... > numeric_addr.s_addr=htonl(inet_addr("127.0.0.1"));