Subject: socket binding
From: [email-masked] (Dong Zhou)

11 Aug 1997 17:46:05 -0700
Approved: [email-masked]
Distribution: cygnus
Message-ID: <Pine.SOL.3.96.970811151933.8443B-100000.cygnus.gnu-win32@jade1>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: dzhou@jade1
Original-To: [email-masked]
Original-Sender: [email-masked]

Hi all,

A question about sockets.

It seems that my program can't correctly bind a socket. 
The code is like following:

	if ((fd = socket(AF_INET, udp?SOCK_DGRAM:SOCK_STREAM, 0)) < 0)
	    err("socket");
	if (bind(fd, &sinme, sizeof(sinme)) < 0)
	    err("bind");

The socket() call is successful but the bind() fails, and the error
number it returned is 106, which, from "errno.h", is EAFNOSUPPORT.

and, TCP/IP stuff seems are working well (at least I can use Netscape and
ftp...) and the program actually works on Solaris. (The port number
assigned is 5001)
  
Can somebody tell me: what does the error mean? and what is the problem
behind it? (something wrong with my NT system?)   

Thanks a lot.
Dong
==

Dong Zhou
(703)907-2526(O)
SAIC

-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".