Subject: Re: dumb bind() question..? (round 2)
To: None <netbsd-help@NetBSD.ORG>
From: Geoff Wing <mason@primenet.com.au>
List: netbsd-help
Date: 03/26/1998 06:29:34
tooleym@douglas.bc.ca <tooleym@douglas.bc.ca> typed:
:The appended program gives me the following:
:bind
:status: -1
:stupid program:: Can't assign requested address

[...deleted...]
:if (s = socket(AF_INET, SOCK_STREAM, 0)) {

	memset(&bindme, 0, len);	/* previously, len = sizeof(bindme) */

:	bindme.sin_family = AF_INET;
:	bindme.sin_port = htons(9000);
:	bindme.sin_addr.s_addr = inet_addr("140.161.99.105");
[...deleted...]
-- 
Geoff Wing   <gcw@pobox.com>            Mobile : 0412 162 441
Work URL: http://www.primenet.com.au/   Ego URL: http://pobox.com/~gcw/