Subject: Re: dumb bind() question..?
To: None <netbsd-help@NetBSD.ORG>
From: Geoff Wing <mason@primenet.com.au>
List: netbsd-help
Date: 03/26/1998 02:52:37
tooleym@douglas.bc.ca <tooleym@douglas.bc.ca> typed:
: if (bind(s, (struct sockaddr *)&bindme, sizeof(bindme)) ) {
: printf("success!\n");
: }
:Success doesn't happen, on 140.161.99.105, and 127.0.0.1.
RTFM: bind(2):
"RETURN VALUES
If the bind is successful, a 0 value is returned. A return value of -1
indicates an error, which is further specified in the global errno."
--
Geoff Wing <gcw@pobox.com> Mobile : 0412 162 441
Work URL: http://www.primenet.com.au/ Ego URL: http://pobox.com/~gcw/